以下內(nèi)容直接復制使用即可
mkdir?~/.pip
touch?~/.pip/pip.conf
echo?"[global]">>~/.pip/pip.conf
echo?"index-url=https://mirrors.aliyun.com/pypi/simple/">>~/.pip/pip.conf
echo?"trusted-host=mirrors.aliyun.com">>~/.pip/pip.conf
pip?install?--upgrade?pip
以下內(nèi)容直接復制使用即可
mkdir?~/.pip
touch?~/.pip/pip.conf
echo?"[global]">>~/.pip/pip.conf
echo?"index-url=https://mirrors.aliyun.com/pypi/simple/">>~/.pip/pip.conf
echo?"trusted-host=mirrors.aliyun.com">>~/.pip/pip.conf
pip?install?--upgrade?pip