python-3.x - 使用 anaconda 在 mac 中为 python3 安装 pygame

标签 python-3.x macos pygame anaconda

我正在尝试为 python 3 安装 pygame 并收到错误: conda 安装-c cogsci pygame 解决环境:失败

UnsatisfiableError: The following specifications were found to be in 
conflict:
  - pygame
  - xlwt
 Use "conda info <package>" to see the dependencies for each package.

尝试再次安装 xlwt 但没有任何变化:

conda install xlwt
Solving environment: 
done 
All requested packages already installed.

知道如何安装吗?

谢谢

最佳答案

UnsatisfiableError 表示无法将列出的两个包安装在同一环境中。你需要创建一个新的环境来安装pygame:

conda create -n pygameenv -c cogsci pygame

关于python-3.x - 使用 anaconda 在 mac 中为 python3 安装 pygame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48972603/

相关文章:

python - 脚本无法导入已安装的包,但解释器可以

swift - 如何从带纹理的 NSWindow 中删除高光?

bash - 以编程方式检测 MacOS 上的程序崩溃?

python - 矩形不会停止移动

python - 使用 ModernGL 为 pygame 创建上下文

python - 绘制条形码在绘图窗口中的显示方式与保存的 .pdf 不同

python - 尝试在 ubuntu 上安装 pygame 出现错误

python - 将元组列表转换为字典列表

macos - 如何在 macOS 上使用 OpenMPI、Hypre 和 Mumps 编译 Elmer fem

python - PyGame Conway 的生命游戏,重绘 Sprite