PyGame gUI 的问题 - Raspberry Pi
Trouble with PyGameUI - RaspberryPi
我有一个 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'] -> ['setuptools']
中删除 pygame>=1.9.1
。
终于运行sudo python setup.py install
.
没有"solution",这里只有解决方法。
为了拥有工作环境,我使用 pygame 安装系统包(即 Arch Linux 中的 pacman -S python2-pygame
),然后使用 --system-site-packages
开关创建 virtualenv。 Pygame 已超过 5 年未更新,因此在可预见的未来发生任何更改的可能性很小。稍后在此 virtualenv 中,我可以使用 --no-deps
开关安装 PygameUI 以跳过依赖项检查 - Pygame 已安装在所需版本中。
我有一个 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'] -> ['setuptools']
中删除 pygame>=1.9.1
。
终于运行sudo python setup.py install
.
没有"solution",这里只有解决方法。
为了拥有工作环境,我使用 pygame 安装系统包(即 Arch Linux 中的 pacman -S python2-pygame
),然后使用 --system-site-packages
开关创建 virtualenv。 Pygame 已超过 5 年未更新,因此在可预见的未来发生任何更改的可能性很小。稍后在此 virtualenv 中,我可以使用 --no-deps
开关安装 PygameUI 以跳过依赖项检查 - Pygame 已安装在所需版本中。