我正在尝试通过以下命令在Google colab中安装pymatgen:
!pip install pymatgen这将抛出以下错误:
Collecting pymatgen
Using cached https://files.pythonhosted.org/packages/06/4f/9dc98ea1309012eafe518e32e91d2a55686341f3f4c1cdc19f1f64cb33d0/pymatgen-2021.2.14.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9j4h3p2n/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'numpy>=1.20.1' 'setuptools>=43.0.0' Check the logs for full command output.正在尝试使用以下命令进行安装:
!pip install -vvv pymatgen这将抛出以下错误:
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-g1m0e202/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'numpy>=1.20.1' 'setuptools>=43.0.0' Check the logs for full command output.请帮助解决此问题。
发布于 2021-02-15 16:17:29
尝试以下操作:
!pip3 install pymatgen发布于 2021-09-30 07:50:16
Google colab做了一个补丁,在那之后,pymatgen的自然安装就无法工作了。所以你需要安装带有版本规格的pymatgen。在我的例子中,我使用的是这个命令,直到今天它都工作得很好。
!pip install pymatgen==2020.11.11祝您今天愉快!
https://stackoverflow.com/questions/66204201
复制相似问题