我的苹果电脑上安装了Anaconda。它弄乱了我的pygame模块。
我尝试遵循这个tutorial,并用conda install pygame替换pip3 install pygame。我先尝试了conda install pip,然后尝试了pip install pygame,但是我得到了以下错误:
Collecting pygame
Could not find any downloads that satisfy the requirement pygame
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pygame to allow).
No distributions at all found for pygame(我从这个thread得到的想法)
在我使用"conda install pip“之前,使用"pip install pygame”是有效的,但是我的默认python现在是anaconda,不再访问pygame。使用which pip可以提供/Users/jensdonlin/anaconda/bin/pip
有没有人有什么建议可以让蟒蛇版本的python3访问pygame?
也许答案与use --allow-external pygame to allow有关,但我不太确定如何使用它。
发布于 2015-03-21 00:19:10
这里的问题是pygame开发人员还没有将pygame上传到PyPI。因此,要安装它,您必须下载它并通过pip安装下载的源代码,如您链接的教程中所述。您可以在Anaconda Python中执行此操作。请注意,在Anaconda Python中,即使是Python3,pip也只称为pip,而不是pip3。
发布于 2015-08-16 02:13:34
我花了两天时间摆弄macports和自制软件,没有使用joy,但我在mac电脑上使用蟒蛇Python2.7.10时,here的使用说明对我很有效。在这里呼应他们,以防链接的网站消失!
首先打开终端,输入以下两行:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install sdl sdl_ttf sdl_image sdl_mixer portmidi如果您没有安装binstar类型:
conda install binstar此时,它可能会告诉您'binstar‘conda包已重命名为'anaconda-client’,您必须键入以下内容:
conda install anaconda-client它让你怎么做就怎么做。最后,输入:
conda install -c https://conda.binstar.org/quasiben pygame希望你已经做完了!
发布于 2015-03-26 10:39:45
我尝试过很多pip的排列。问题是我没有指定我尝试pip install pygame的文件路径。我现在已经按照上面给出的教程成功安装了pygame,并使用:pip install /Users/YOURNAME/Downloads/pygame
https://stackoverflow.com/questions/29137369
复制相似问题