我正在使用Anaconda Python 3。 我正在尝试安装pyOpenGL,Vpython和pygame。
使用conda install
安装pyOpenGL和Vpython很好。
当我尝试安装Pygame时,使用conda install -c https://conda.binstar.org/kne pygame
#same for conda install pygame
...
The following NEW packages will be INSTALLED:
.
.
.
The following packages will be REMOVED:
backports.os-0.1.1-py37_0
importlib_metadata-0.8-py37_0
jeepney-0.4-py37_0
jupyterlab_server-0.2.0-py37_0
secretstorage-3.1.1-py37_0
wurlitzer-1.0.2-py37_0
The following packages will be UPDATED:
.
.
.
The following packages will be DOWNGRADED:
.
.
.
python 3.7.3-h0371630_0 --> 2.7.16-h9bab390_0
.
.
.
会显示:
{{1}}
因此,如果我决定安装pygame,则将python3降级为python 2.7,并且无法使用pyOpenGL。 有没有一种方法可以在不降级python的情况下在这种环境中安装pygame?
答案 0 :(得分:1)
这意味着您尝试安装的渠道(例如kne
)没有适用于Python 3.7的Pygame软件包。由于可用的最新版本是针对Python 3.5的,因此您需要为该Python版本创建一个conda环境并在其上安装Pygame。