我正在尝试通过pip安装一个名为"simpleguitk"的软件包。(在Python 3.5上的Ubuntu 16.04上)
运行后:
当我试图导入该模块时,它会报错:
运行后:
sudo -H pip3 install simpleguitk
它说安装已成功完成。(除了Pygame依赖项,实际上这是可选的)
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,因为未安装"
我已经尝试了pip 8.1.2和pip 9.0.1,但结果相同。 我甚至重新安装了Ubuntu,但仍然是一样的。
我认为Python路径不正确,因为它没有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