我想用setuptools寫一個setup.py文件。我的軟件包取決於tensorflow,但有兩種不同的pip軟件包可滿足要求:tensorflow和tensorflow-gpu。如果我只將tensorflow放入我的setup(..., install_requires=["tensorflow"]),那麼如果用戶在其系統上安裝了tensorflow-gpu pip軟件包,安裝將會失敗。 im
我有新的Ubuntu 17.04個很奇怪的問題,當我嘗試安裝從PIP我無法做到這一點的東西......這是錯誤: sudo pip install psutil
The directory '/home/metu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has