擅长:python、mysql、java
<p>直接转到pytorch网站,按照安装说明进行操作,它会准确地告诉您安装-<a href="https://pytorch.org/get-started/locally/" rel="nofollow noreferrer">pytorch - get started</a>所需的命令</p>
<p>例如:</p>
<p><a href="https://i.stack.imgur.com/D5XqP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D5XqP.png" alt="enter image description here"/></a></p>
<p>如果您正在查找PyTorch的旧版本,可以在此处找到要安装的版本历史记录和命令-<a href="https://pytorch.org/get-started/previous-versions/" rel="nofollow noreferrer">Installing Previous Versions of PyTorch</a></p>
<p>如果这对您不起作用,您的最后一个选择是自己从源代码构建。下面是0.4.1-<a href="https://github.com/pytorch/pytorch/tree/v0.4.1" rel="nofollow noreferrer">pytorch at 0.4.1</a>版的GitHub repo。repo<a href="https://github.com/pytorch/pytorch/tree/v0.4.1#from-source" rel="nofollow noreferrer">here</a>上概述了从源代码安装的步骤</p>