pytorch安装命令「建议收藏」

pytorch安装命令「建议收藏」转自:https://blog.csdn.net/sunny_580/article/details/78958236pytorch安装命令OS :Linux, PackageManager :conda, Python :2.7, CUDA :7.5Runthiscommand: condainstallpytorchtorchvisioncuda75-c…

大家好,又见面了,我是你们的朋友全栈君。

转自:https://blog.csdn.net/sunny_580/article/details/78958236

pytorch安装命令

OS :Linux, 

Package Manager :conda, 

Python :2.7, 

CUDA :7.5

Run this command: conda install pytorch torchvision cuda75 -c pytorch

CUDA :8

 

Run this command: conda install pytorch torchvision -c pytorch

 

 

CUDA :9

Run this command: conda install pytorch torchvision cuda90 -c pytorch

CUDA :NONE

Run this command: conda install pytorch torchvision -c pytorch

 

 

 

OS :Linux, 

Package Manager :conda, 

Python :3.5, 

CUDA :7.5

Run this command: conda install pytorch torchvision cuda75 -c pytorch

 

 

CUDA :8

Run this command: conda install pytorch torchvision -c pytorch

 

 

CUDA :9

Run this command: conda install pytorch torchvision cuda90 -c pytorch

 

CUDA :NONE

Run this command: conda install pytorch torchvision -c pytorch

 

 

 

 

 

 

 

OS :Linux, 

Package Manager :conda, 

Python :3.6, 

CUDA :7.5

Run this command: conda install pytorch torchvision cuda75 -c pytorch

 

 

CUDA :8

Run this command: conda install pytorch torchvision -c pytorch

 

 

CUDA :9

Run this command: conda install pytorch torchvision cuda90 -c pytorch

 

CUDA :NONE

Run this command: conda install pytorch torchvision -c pytorch

 

 

 

OS :Linux, 

Package Manager :pip, 

Python :2.7, 

CUDA :7.5

Run this command:pip install http://download.pytorch.org/whl/cu75/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl 
pip install torchvision 

# if the above command does not work, then you have python 2.7 UCS2, use this command 
pip install http://download.pytorch.org/whl/cu75/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl

 

 

CUDA :8

Run this command: pip install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl 
 pip install torchvision 

# if the above command does not work, then you have python 2.7 UCS2, use this command 
pip install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl

 

 

CUDA :9

Run this command: pip install http://download.pytorch.org/whl/cu90/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl 
  pip install torchvision 

# if the above command does not work, then you have python 2.7 UCS2, use this command 
pip install http://download.pytorch.org/whl/cu90/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl

 

CUDA :NONE

Run this command: pip install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl 

 

  pip install torchvision 

# if the above command does not work, then you have python 2.7 UCS2, use this command 
pip install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl

 

 

 

 

 

OS :Linux, 

Package Manager :pip, 

Python :3.5, 

CUDA :7.5

Run this command: pip3 install http://download.pytorch.org/whl/cu75/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl 
 pip3 install torchvision

 

 

CUDA :8

Run this command: pip3 install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl 

 pip3 install torchvision

 

 

CUDA :9

Run this command: pip3 install http://download.pytorch.org/whl/cu90/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl 
  pip3 install torchvision

 

CUDA :NONE

Run this command: pip3 install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl 

 pip3 install torchvision

 

 

 

OS :Linux, 

Package Manager :pip, 

Python :3.6, 

CUDA :7.5

Run this command: pip3 install http://download.pytorch.org/whl/cu75/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl 
 pip3 install torchvision

 

 

CUDA :8

Run this command: pip3 install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl 

      pip3 install torchvision

 

 

CUDA :9

Run this command: pip3 install http://download.pytorch.org/whl/cu90/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl 
  pip3 install torchvision

 

CUDA :NONE

Run this command: pip3 install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl 

 pip3 install torchvision

 

 

 

 

 

OS :Linux, 

Package Manager :Source, 

Python :2.7, 3.5, 3.6

CUDA :7.5, 8, 9, None

Run this command: # Follow instructions at this URL: 
https://github.com/pytorch/pytorch#from-source

 

 

 

OS :OSX, 

 

Package Manager :Source, 

Python :2.7, 3.5, 3.6

CUDA :7.5, 8, 9, None

 

Run this command:  # Follow instructions at this URL: 

 

  https://github.com/pytorch/pytorch#from-source

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/152777.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 一看就懂:正则表达式[通俗易懂]

    一看就懂:正则表达式[通俗易懂]案例引入在讲正则表达式前,我们不妨先从一个场景来逐渐引入。你可能有过这样的经历:我们去某些网站注册帐号,当你在设置密码的时候,网站会提示你密码的长度范围,以及对应的规则限制(如下图)。根据上图,我们将密码设置规则可以描述为两个条件:(1)长度为6-16位;(2)密码中必须包含数字,大写字母,小写字母,特殊字符(指定字符);现在假设我们不知道正则表达式,作为程序员的你,该如何去实现这样一个密码验证呢?下面是我写的一个校验方法(样本):/***校验用户密码是否满足..

    2022年5月13日
    55
  • 微信公众平台开发(58)自定义菜单

    微信公众平台开发(58)自定义菜单

    2021年8月27日
    50
  • 如何防御udp攻击_编码可以防御哪些攻击

    如何防御udp攻击_编码可以防御哪些攻击原理​UDPFlood是日渐猖厥的流量型DoS攻击,原理也很简单。常见的情况是利用大量UDP小包冲击DNS服务器或Radius认证服务器、流媒体视频服务器。100kpps的UDPFlood经常将线路上的骨干设备例如防火墙打瘫,造成整个网段的瘫痪。由于UDP协议是一种无连接的服务,在UDPFLOOD攻击中,攻击者可发送大量伪造源IP地址的小UDP包。但是,由于UDP协议是无连接性的,所以只要开了一个UDP的端口提供相关服务的话,那么就可针对相关的服务进行攻击。正常应用情况下,UDP包双向流量会基本相等,而

    2022年10月2日
    0
  • pycharm下载哪个版本_pycharm有几个版本

    pycharm下载哪个版本_pycharm有几个版本https://www.jetbrains.com/pycharm/download/previous.html

    2022年8月28日
    0
  • php获取数组第一个或者最后一个元素

    php获取数组第一个或者最后一个元素php获取数组第一个或者最后一个元素

    2022年4月24日
    53
  • fileinput-图片插件「建议收藏」

    fileinput-图片插件「建议收藏」<linkrel=”stylesheet”href=”{{asset(‘plugins/fileinput/css/fileinput.min.css’)}}”xmlns=”http://www.w3.org/1999/html”><scriptsrc=”{{asset(‘plugins/fileinput/js/fileinput.js’)}}”></s…

    2022年5月29日
    29

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号