我正在嘗試通過pip安裝名爲「simpleguitk」的軟件包。 (在Ubuntu 16.04使用Python 3.5)
運行使用pip安裝模塊,未找到
sudo -H pip3 install simpleguitk
後,它說,安裝成功完成。 (除pygame的dependecy這實際上是可選的)
Collecting simpleguitk
Using cached SimpleGUITk-1.1.3.tar.gz
Collecting Pillow>=2.0.0 (from simpleguitk)
Using cached Pillow-3.4.2-cp35-cp35m-manylinux1_x86_64.whl
Collecting pygame>=1.9.0 (from simpleguitk)
Could not find a version that satisfies the requirement pygame>=1.9.0 (from simpleguitk) (from versions: 1.9.2.dev1, 1.9.2b7, 1.9.2b8)
No matching distribution found for pygame>=1.9.0 (from simpleguitk)
我無法找到包在/usr/local/lib/python3.5/dist-packages 或/usr/lib/python3.5或/ usr/lib目錄/ python3
當我嘗試導入模塊,它說:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'simpleguitk'
我試圖重新安裝,但運行:
sudo -H pip3 uninstall simpleguitk
返回:「無法卸載要求simpleguitk,沒有安裝 」
我已經嘗試了這兩個點8.1.2和點9.0.1具有相同的結果。 我甚至重新安裝了Ubuntu,但仍然一樣。
我認爲Python路徑是錯誤的,因爲它沒有蟒蛇3.5,但我不知道如何解決它
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0']
'〜/ .pip.log'說什麼? – Flint