pip更新
python -m pip install --upgrade pip
# 或
pip install -U pip
使用更新庫(kù)
pip install --upgrade [庫(kù)名]
鏡像
使用國(guó)外的鏡像會(huì)比較慢,甚至安裝失敗,可以轉(zhuǎn)成國(guó)內(nèi)鏡像:
豆瓣:http://pypi.douban.com/simple/
清華:https://pypi.tuna.tsinghua.edu.cn/simple
安裝:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple [庫(kù)名]