镜像源设置
在命令行中临时设置:
1 | pip install some-package -i https://pypi.tuna.tsinghua.edu.cn/simple |
使用conda环境中的pip命令前激活镜像源环境变量:
1 | export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple |
虚拟环境
创建:
1 | conda create -n xxx python=xxx |
删除:
1 | conda env remove -n xxx |
环境配置
高级系统设置-环境变量-系统变量-Path
1 | D:\Tools\anaconda3 |
Linux下代理设置
1 | export http_proxy=http://172.23.16.1:7897 |
git代理
1 | -c http.proxy="http://127.0.0.1:7897" |