镜像源设置

在命令行中临时设置:

1
pip install some-package -i https://pypi.tuna.tsinghua.edu.cn/simple

使用conda环境中的pip命令前激活镜像源环境变量:

1
2
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
pip install some-package

虚拟环境

创建:

1
conda create -n xxx python=xxx

删除:

1
conda env remove -n xxx

环境配置

高级系统设置-环境变量-系统变量-Path

1
2
3
D:\Tools\anaconda3
D:\Tools\anaconda3\Scripts
D:\Tools\anaconda3\Library\bin

Linux下代理设置

1
2
export http_proxy=http://172.23.16.1:7897
export https_proxy=http://172.23.16.1:7897

git代理

1
-c http.proxy="http://127.0.0.1:7897"