pytorch安装教程,使用国内源

pytorch安装教程,使用国内源,第1张

pytorch安装教程,使用国内源

1.cuda+cudnn+ 8.2.4

2.pytorch

pip3 install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio===0.10.1+cu113  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com  --default-timeout=10000 -f https://download.pytorch.org/whl/torch_stable.html


 

3.opencv

make -D CMAKE_BUILD_TYPE=RELEASE   -D CMAKE_INSTALL_PREFIX=/usr/local   -D INSTALL_PYTHON_EXAMPLES=ON    -D OPENCV_EXTRA_MODULES_PATH= ../opencv_contrib-3.4.16/modules  -D PYTHON_EXCUTABLE=/usr/bin/python3  ..
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib-3.4.16/modules/ ..

4.python 3.3.12
升级pip
 

 python3 -m pip install --upgrade pip

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

原文地址: https://outofmemory.cn/zaji/5679824.html

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

发表评论

登录后才能评论

评论列表(0条)

保存