pytoch安装指定版本教程&pytorch1.3安装笔记

一、先生成一个环境

如果电脑里安装了其他的torch版本,另外生成一个环境可以防止原先torch版本被替换掉。

打开conda的终端窗口输入以下命令就可以生成一个名为torch_1.3的环境:

conda create -n torch_1.3 python=3.6

输入以下命令进入到torch_1.3的环境里:

conda activate torch_1.3

二、安装cuda9.2版本的torch1.3

安装pytorch,一般情况下到pytorch官网选择好后复制命令即可,如下图所示:

PyTorch

图1

但我安装的是cuda9.2版的torch,安装就没有这么方便了

1、首先我得去官网的previous pytorch versions里找到对应链接

https://download.pytorch.org/whl/

图3

2、然后进入到以下界面,点击torch,这里会有更多的torch版本以及torchvision版本

图4

3、终于找到了torch1.3,于是点击链接,下载安装

图5

4、在anconda终端需要联网安装,不支持提供包安装,如下图

图6

三、配置torchvision0.4.1

返回图4界面,点击torchvision进入以下界面,找到我所要的版本啦啦啦

图7

下载安装

图8

四、检查安装是否成功

如下图进行测试,无报错即安装成功。e

以上仅为个人学习笔记,如有错误,请不吝赐教,不胜感激!

### PyTorch 1.3 Installation Guide and Release Notes For users interested in the specifics of PyTorch version 1.3, including its installation process and notable changes introduced during this release, several key points can be highlighted. The official documentation recommends installing PyTorch through Anaconda or using pip directly; however, specific instructions may vary depending on whether CUDA support is required[^2]. For a precise setup targeting PyTorch 1.3 with CUDA compatibility, one should ensure that compatible versions of CUDA and cuDNN are installed prior to setting up PyTorch itself. Regarding detailed installation steps tailored specifically for PyTorch 1.3: To install via `pip`, it's important to specify the exact version number when executing commands such as: ```bash pip install torch==1.3.0 torchvision==0.4.0 ``` This command installs both PyTorch (version 1.3) along with TorchVision at an appropriate matching version which works well together. In terms of new features added within PyTorch 1.3, highlights include improvements aimed at enhancing performance across various hardware platforms while also expanding support for additional functionalities like JIT scripting capabilities among others. --related questions-- 1. What were some major enhancements made available in PyTorch 1.3? 2. How does one verify successful installation after completing all necessary setups? 3. Are there any known issues associated particularly with PyTorch 1.3 installations? 4. Can TensorRT integration work seamlessly alongside PyTorch 1.3 given proper configurations have been applied according to provided guidelines?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值