想安装指定版本的pytorch,指令(在cuda9下也可以安装):
conda install pytorch=0.1.10 -c soumith
然后,出现错误
安装出现HTTP 000 CONNECTION FAILED....
原因:是使用的是国外的镜像,需要切换至国内镜像
#使用conda config --show获取当前环境的配置信息
$conda config --show
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_non_channel_urls: False
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_update_conda: True
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: True
channels:[]
client_ssl_cert: None
client_ssl_cert_key: None