【发布时间】:2019-09-14 07:37:28
【问题描述】:
我正在使用 Anaconda Python 3。 我正在尝试安装 pyOpenGL、Vpython 和 pygame。
使用conda install 安装 pyOpenGL 和 Vpython 很好。
当我尝试使用 conda install 安装 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
.
.
.
因此,如果我决定安装 pygame,我会将 python3 降级到 python 2.7,并且无法使用 pyOpenGL。 有没有办法在这种环境下安装pygame而不降级python?
【问题讨论】:
-
我使用 CPython 但我安装了 Anaconda3。在带有
conda的文件夹中,我还有pip并使用pip install pygame我可以在Anaconda 中为python 3.7安装pygame。 -
@furas 我试过 pip,但它也要求降级。解决方案是创建一个新的 conda 环境并安装 OpenpyGL,而不是 Vpython、pygame 和后来的 spyder。在 python 3.5 上。感谢您的帮助!
标签: python-3.x pygame conda pyopengl