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