python仓库设置

用我自己的仓库

pip config set global.index-url https://mirrors.hetao.me/pypi/simple
pip config set global.trusted-host mirrors.hetao.me

环境变量

export PIP_INDEX_URL=https://mirrors.hetao.me/pypi/simple
export PIP_TRUSTED_HOST=mirrors.hetao.me

pip环境变量参考:
https://pip.pypa.io/en/stable/topics/configuration/#environment-variables

发表回复