【安装库】安装虚拟环境pytorch or tensorflow..

【安装库】安装虚拟环境pytorch or tensorflow..,第1张

【安装库】安装虚拟环境pytorch or tensorflow..
1.查看虚拟环境有哪些

conda env list

2.创建虚拟环境

conda create -n tf_gpu python=3.6.5

3.激活虚拟环境

conda activate tf_gpu

4.安装pytorch

pip install torch==1.10 -i https://pypi.tuna.tsinghua.edu.cn/simple --target=E:\software\Anaconda\run_file\envs\pytorch_1.10\Lib\site-packages

或者

pip install torch===1.3.0 torchvision===0.4.1 -f https://download.pytorch.org/whl/torch_stable.html

5.cuda安装
选择对应版本

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/885222.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-14
下一篇2022-05-14

发表评论

登录后才能评论

评论列表(0条)

    保存