python退出命令,Python修改鏡像原命令

 2023-10-18 阅读 54 评论 0

摘要:Python修改鏡像源命令修改取消修改鏡像 修改 # 配置清華PyPI鏡像(如無法運行,將pip版本升級到>=10.0.0) pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 取消修改 pip config unset global.index-url 鏡像 清華

Python修改鏡像源命令

    • 修改
    • 取消修改
    • 鏡像

修改

 # 配置清華PyPI鏡像(如無法運行,將pip版本升級到>=10.0.0) pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

取消修改

pip config unset global.index-url

鏡像

清華:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/

python退出命令。華中理工大學:http://pypi.hustunique.com/

山東理工大學:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

note:新版ubuntu要求使用https源,要注意。

例如:pip3 install -i https://pypi.doubanio.com/simple/ 包名

臨時使用:#
可以在使用pip的時候加參數-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider,這樣就會從清華這邊的鏡像去安裝pyspider庫。

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://808629.com/155734.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 86后生记录生活 Inc. 保留所有权利。

底部版权信息