【发布时间】:2015-05-22 03:23:10
【问题描述】:
我的 Mac 上安装了 Anaconda。它弄乱了我的 pygame 模块。
我尝试关注此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
(我从thread得到的想法)
在我执行“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,但我不确定如何使用它。
【问题讨论】:
-
在解决这个问题的过程中,我对 pip 有了更好的处理。所以我决定删除 anaconda 并简单地使用 pip 来安装我的所有模块。
-
在这里责备
anaconda是不公平的。您是否阅读过文档如何在 Mac 上安装pygame?他们的网站上有说明:pygame.org/wiki/macintosh -
我没有责怪任何人,我认为 anaconda 很棒。我对编程很陌生,而且我不明白该怎么做。我知道如何使用 python 3 安装 pygame。但我仍然不确定如何将它安装到 python 的 anaconda 版本中。 pygame.org 上的说明不会将 pygame 安装到 anaconda 中。即使我将
pip3更改为conda。所以我决定使用我所知道的有效方法。 -
我建议尝试
conda install pip。然后编辑您的问题并添加which -a pip的输出。 -
我也试过 conda install pip 很遗憾也没有用。我还在 continuum google group 上问了这个问题,并得到了一些非常有用的反馈以及它不起作用的原因。如果有人有类似的问题。groups.google.com/a/continuum.io/forum/#!topic/anaconda/…