pip安装pytorch

安装pytorch

进入pytorch官网,根据自己需要设定选项,官网地址为https://pytorch.org/get-started/locally/#mac-anaconda
在这里插入图片描述若使用清华镜像,可实现下列命令:
pip install torch=1.4.0 torchvision=0.5.0 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple

发布了41 篇原创文章 · 获赞 44 · 访问量 7675

猜你喜欢

转载自blog.csdn.net/tailonh/article/details/104276170