我从tar.xz安装了python 2.7.10,这是从官方网站下载的。然后我将/usr/local/bin/python2.7与/usr/bin/python2.7和/ usr / bin / python链接起来。我也重新安装了点sudo apt-get install python-pip --reinstall
。
现在,当我尝试通过pip sudo pip install PyGTK
安装PyGTK时,我得到:
The directory '/home/s-quark/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/s-quark/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting PyGTK
Could not find a version that satisfies the requirement PyGTK (from versions: )
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external PyGTK to allow).
No matching distribution found for PyGTK