pytorch安装

本文详细介绍了如何通过conda配置清华源,安装Python 3.7.5环境,并创建名为pytorch的环境。接着,激活该环境并安装PyTorch 1.5.1、torchvision 0.6.1以及CUDA工具包10.1。最后,利用pip安装了opencv-python、Pillow等其他相关库。
摘要由CSDN通过智能技术生成

pytorch安装

1

channels:

  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  • http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
    show_channel_urls: true
    ssl_verify: false

conda config --add channels http://

conda config --set show_channel_urls yes
conda config --set ssl_verify false
检查.condart——删除default

2

conda clean -i

3

conda creat --name pytorch python==3.7.5

conda activate pytorch

4

conda installpytorch1.5.1 torchversion0.6.1 cudatookit=10.1

5

pip opencv-python pillow matplotlib scipy pandas scikit-learn==0.22 filterpy numba tqdm scikit-image imutils PyYAML tensorboard seaborn ipykernel xlrd xlwt -i hettp://mirrors.aliyun.com/pypi/simple

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值