我试图通过pip安装一个名为“simpleguitk”的软件包. (在使用Python 3.5的Ubuntu 16.04上)
跑完之后
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 "", line 1, in
ImportError: No module named 'simpleguitk'
我试图重新安装它,但运行:
sudo -H pip3 uninstall simpleguitk
返回:“无法卸载要求simpleguitk,未安装
“
我已经在pip 8.1.2和pip 9.0.1上尝试了相同的结果.
我甚至重新安装了Ubuntu,但仍然是一样的.
我认为Python Path是错的,因为它没有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']