背景
最近在跑三维人体重建论文的代码,很多都是python写的。
内容
下面列举一些常见的命令
anaconda
创建虚拟环境:
conda create -n your_env_name python=x.x
切换到虚拟环境:
source activate your_env_name
或
conda activate your_env_name
pip
换国内源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set global.index-url http://pypi.douban.com/simple/