我有一个 Python 脚本,我想在其中导入 pygameui。当我表演时:
sudo pip install pygameui
在终端中,我收到以下消息:
Downloading/unpacking pygameui Running setup.py egg_info for package pygameui Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages/setuptools-12.0.4-py2.7.egg (from pygameui) Downloading/unpacking pygame>=1.9.1 (from pygameui)
Could not find a version that satisfies the requirement pygame>=1.9.1 (from pygameui) (from versions: ) No distributions matching the version for pygame>=1.9.1 (from pygameui) Storing complete log in /root/.pip/pip.log
我正在努力解决这个问题。有人可以帮助我吗?
请您参考如下方法:
该模块已 3 年未更新,但解决方法是:
首先从github下载master:
git 克隆 https://github.com/fictorial/pygameui.git
然后cd pygameui
用编辑器打开 setup.py 并从 install_requires=['setuptools', 'pygame>=1.9.1 中删除 。 pygame>=1.9.1 '] -> ['setuptools']
最后运行 sudo python setup.py install。
