pymatgen模块应该适用于Python2.7.x或3。这两个版本的文件都可用(https://anaconda.org/matsci/pymatgen/files)。我的Python (sys.version)是2.7.11。
我尝试使用standard:"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."看起来它正在尝试为Python3安装pymatgen模块,而我是一个短版本。
我想安装2.7.x兼容版本,但找不到如何强制conda安装这样做的说明。
由于其他原因,我不能升级到3.6。
发布于 2017-05-25 07:16:12
你试过pip吗?
但首先要像他们提到的Here那样安装NumPy
然后使用:pip install pymatgen
发布于 2018-01-09 12:11:48
已从运行Miniconda3-latest-MacOSX-x86_64.sh重新启动,而不是运行Miniconda2-latest-MacOSX-x86_64.sh。
发布于 2018-09-17 22:01:45
无论您安装了什么conda,都可以使用以下命令创建特定的Python 2.7环境
conda create --name py27 python=2.7然后,您应该能够按照Python 2.7安装的所有步骤进行操作。
https://stackoverflow.com/questions/44169769
复制相似问题