pip安裝地址–清華源(國(guó)內(nèi)常用鏡像源)
國(guó)內(nèi)常用鏡像源
清華大學(xué) :
https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:
http://mirrors.aliyun.com/pypi/simple/
中國(guó)科學(xué)技術(shù)大學(xué) :
http://pypi.mirrors.ustc.edu.cn/simple/
華中科技大學(xué):
http://pypi.hustunique.com/
豆瓣源:
http://pypi.douban.com/simple/
騰訊源:
http://mirrors.cloud.tencent.com/pypi/simple
華為鏡像源:
https://repo.huaweicloud.com/repository/pypi/simple/
————————————————
1、臨時(shí)使用
pip install [包名] -i [pip源URL]
# 示例
pip install pytest -i https://pypi.tuna.tsinghua.edu.cn/simple
# 或
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pytest
# 或
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
2、永久使用
前提pip版本 (>=10.0.0) 方可使用此命令進(jìn)行配置:
升級(jí) pip 到最新的版本
pip install pip -U
# 或
python -m pip install --upgrade pip
修改pip源為清華源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
三塊一毛四文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-853982.html
pip安裝地址–清華源(國(guó)內(nèi)常用鏡像源)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-853982.html
到了這里,關(guān)于Python系列:pip安裝地址--清華源(國(guó)內(nèi)常用鏡像源)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!