怎么安装pytorch

阅读 212

2022-04-19

pycharm控制台 输入代码下载pytorch cpu版本

pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

 下面的是其他的辅助你可详细看


(1)pip国内的一些镜像
阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pip install  statsmodels -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com

python37 -m  pip  install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch

精彩评论(0)

0 0 举报