python venv pip use domestic source

First, activate the venv environment. Go to the directory of venv

cd ./venv/bin

Activate the venv environment

source activate

Then configure pip to use domestic sources, so that the next download will use domestic sources.

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Guess you like

Origin blog.csdn.net/duoyasong5907/article/details/129190001