使用anaconda在mac中为python3安装pygame

时间:2018-02-25 10:49:01

标签: python-3.x macos pygame anaconda

我正在尝试为python 3安装pygame并获取错误: conda install -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.

知道如何安装吗?

由于

1 个答案:

答案 0 :(得分:1)

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

conda create -n pygameenv -c cogsci pygame