我正在尝试在Python 3.6上安装Pygame,但是当我写道:
pip3 install hg+http://bitbucket.org/pygame/pygame
我收到此错误:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in <module>
from pip import main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/download.py", line 36, in <module>
from pip.utils.glibc import libc_ver
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/utils/glibc.py", line 4, in <module>
import ctypes
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/__init__.py", line 89, in <module>
get_input()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/__init__.py", line 64, in get_input
verb_word = command[0]
IndexError: list index out of range
我已经完成了pygame所需的所有安装,但我仍然得到这个......任何人都知道问题是什么以及如何修复它?谢谢。
答案 0 :(得分:0)
您可能想尝试此操作(在末尾指定标记):
$ pip install hg+https://bitbucket.org/pygame/pygame@1.9.3