pymatgen 模块应该适用于 Python 2.7.x 或 3。两者的文件都可用(https://anaconda.org/matsci/pymatgen/files)。我的 Python (sys.version) 是 2.7.11。
我尝试使用标准安装:"conda install -c mastic pymatgen"
,但它返回一个错误:
"Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- pymatgen -> python 3.6*
- python 3.5*
Use "conda info <package>" to see the dependencies for each package."
看起来它正在尝试为 Python 3 安装 pymatgen 模块,而我的版本较短。
我想安装 2.7.x 兼容版本,但找不到有关如何强制 conda 安装执行此操作的说明。
由于其他原因,我无法升级到 3.6。