pip安装方式
1.pip install torch == 1.3.0 torchvision == 0.4.1
2./home/xxx/anaconda3/bin/python -m pip install mxnet-cu90
3.python -m pip install --upgrade pip
pip安装加入镜像
方式一:vim ~/.pip/pip.conf 安装源
[global]
index-url = http://172.16.3.17:8081/repository/mypypi/simple/
trusted-host = 172.16.3.17
[install]
trusted-host = 172.16.3.17
方式二:pip install torch ==1.3.0 torchvision ==0.4.1 -i http://172.16.3.17:8081/repository/mypypi/simple/ --trusted-host 172.16.3.17
conda 安装加入镜像
vim ~/.condarc 安装源
channels:
-https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
-defaults
show_channel_urls: true
在conda activate环境下,conda install方式是conda当前env下安装,pip install安装所有env
在非conda activate pip install 即一般所以安装