
Python环境配置清华源
·
1、pip配置清华源
1.1 临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
1.2 永久使用
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
2、conda配置清华源
1.1 临时使用
conda install --channel https://conda.anaconda.org/anaconda scikit-image
1.2 永久使用
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
更多推荐
所有评论(0)