服务器安装Pytorch

cuda8.0+python2.7+pip :

http://pytorch.org/

安装pip 

 下载地址:https://pypi.python.org/pypi/pip#downloads

   将下载后的tar文件解压,用CMD模式进入到解压后的文件所在的目录执行命令:python setup.py install 

 安装完成


安装:
python2.7
pip install http://download.pytorch.org/whl/cu80/torch-0.1.11.post5-cp27-none-linux_x86_64.whl
pip install torchvision

被墙的原因无法完成安装:(转自:https://www.cnblogs.com/rain124/p/6196053.html)

异常信息:
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=’pypi.python.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/scipy/
通过pip安装scipy、scikit-learn等库的时候,可能会报上面的错误,国内通过手段,是可能解决该问题的。下面给个不用的办法。 
使用国内镜像下载python库的办法。
以下载pandas为例,终端输入命令(前提是python正确安装):
pip  install --index https://pypi.mirrors.ustc.edu.cn/simple/ pandas   
注:--index后面也可以换成别的镜像,比如 http://mirrors.sohu.com/python/


你可能感兴趣的:(pytorch)