[英]How can I install the mat2vec Python package?
I'm trying to install the mat2vec
Python package (more info here: https://github.com/materialsintelligence/mat2vec ) typing the usual pip install mat2vec
. I'm trying to install the
mat2vec
Python package (more info here: https://github.com/materialsintelligence/mat2vec ) typing the usual pip install mat2vec
. But the output is但是 output 是
ERROR: Could not find a version that satisfies the requirement mat2vec (from versions: none)
ERROR: No matching distribution found for mat2vec
Any idea to fix it?有什么想法可以解决吗?
I believe you need to do the following:我相信您需要执行以下操作:
1- Download package root directory: https://github.com/materialsintelligence/mat2vec . 1-下载package根目录: https://github.com/materialsintelligence/mat2vec 。
2- Open a python terminal and navigate to the downloaded package root directory path. 2- 打开 python 终端并导航到下载的 package 根目录路径。
3- Run the command: pip install --ignore-installed -r requirements.txt
. 3-运行命令:
pip install --ignore-installed -r requirements.txt
。
4- Run the command: python setup.py instal
. 4-运行命令:
python setup.py instal
。
5- Run the command: cde data download
. 5-运行命令:
cde data download
。
Your system may have 2 different versions of Python and your pip command may call the Python 2.x version.您的系统可能有 2 个不同版本的 Python 并且您的 pip 命令可能会调用 Python 2.x 版本。
To solve this problem, you should install Python 3 version of pip with these steps:要解决此问题,您应该安装 Python 3 版本的 pip,步骤如下:
sudo apt update
sudo apt install python3-pip
After this process, please check is it successfully installed or not with this command:完成此过程后,请使用以下命令检查是否成功安装:
pip3 --version
It must give you a result like this:它必须给你这样的结果:
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
After all these steps you can install your desired Python package with:在所有这些步骤之后,您可以安装所需的 Python package:
pip3 install mat2vec
If it requires a sudo permission please use:如果它需要 sudo 权限,请使用:
sudo pip3 install mat2vec
I hope this is your solution, if it is not please share the result with me.我希望这是您的解决方案,如果不是,请与我分享结果。 I may help you, thanks.
我可以帮助你,谢谢。
I did check the GitHub page of your targeted package and the solution must be the @TheRockSays 's solution.我确实检查了目标 package 的 GitHub 页面,解决方案必须是 @TheRockSays 的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.