pip安装报错:Command python setup.py egg_info failed with error code 1(pip install os报错)

网友投稿 736 2022-08-22


pip安装报错:Command python setup.py egg_info failed with error code 1(pip install os报错)

原文链接

windows下使用pip安装torch模块,出现错误:

ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\xxx\AppData\Local\Temp\pip-install-yqzlud5w\torch\

方法一

尝试参考文章:prompt,输入:

conda create -n myroot python=3.5

myroot为自己定义的环境名称,对应的python3.5版本。

然后输入:

activate myroot

激活环境。

通过:

python --version nvcc --version

分别查看python和cuda版本。

安装 pytorch

根据python和cuda的版本选择安装GPU或CPU版本:

#使用conda安装 'conda,cuda8,python3.5': conda install pytorch -c pytorch 'conda,cuda9.0,python3.5': conda install pytorch cuda90 -c pytorch 'conda,cuda9.1,python3.5': conda install pytorch cuda91 'conda,cudanone,python3.5': conda install pytorch-cpu -c pytorch 'conda,cuda8,python3.6': conda install pytorch -c pytorch 'conda,cuda9.0,python3.6': conda install pytorch cuda90 -c pytorch 'conda,cuda9.1,python3.6': conda install pytorch cuda91 -c pytorch 'conda,cudanone,python3.6': conda install pytorch-cpu -c pytorch #使用pip安装 'pip,cudanone,python3.5': pip3 install 'pip,cuda8,python3.5': pip3 install 'pip,cuda9.0,python3.5': pip3 install 'pip,cuda9.1,python3.5': pip3 install 'pip,cudanone,python3.6': pip3 install 'pip,cuda8,python3.6': pip3 install 'pip,cuda9.0,python3.6': pip3 install 'pip,cuda9.1,python3.6': pip3 install http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-win_amd64.whl

安装成功:


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:操作序列(操作序列宏)
下一篇:使用maven如何将项目中的test代码打包进jar中
相关文章

 发表评论

暂时没有评论,来抢沙发吧~