我在我的Mac上安装了Anaconda。但它与我的pygame模块冲突。
我尝试按照这个tutorial的步骤,将
我尝试按照这个tutorial的步骤,将
pip3 install pygame
替换为conda 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
我从这个帖子中得到了一些想法。
在执行"conda install pip"之前,使用"pip install pygame"是有效的。然而,我的默认Python现在是Anaconda版本,不再能够访问pygame。使用which pip
命令会返回/Users/jensdonlin/anaconda/bin/pip
有没有人有一些建议可以让Anaconda的Python3版本访问pygame?
也许答案涉及use --allow-external pygame to allow
,但我不确定如何使用它。
anaconda
是不公平的。你有没有阅读如何在Mac上安装pygame
的文档?他们的网站上有说明:http://pygame.org/wiki/macintosh - celpip3
更改为conda
,pygame.org上的说明也无法将pygame安装到anaconda中。所以我决定使用我知道可行的方法。 - JensDconda install pip
命令。然后编辑您的问题并添加which -a pip
命令的输出结果。 - cel