mport os
ini="""[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
“”"
pippath=os.environ[“USERPROFILE”]+"pip"
if not os.path.exists(pippath):
os.mkdir(pippath)
with open(pippath+“pip.ini”,“w+”) as f:
f.write(ini)
————————————————
版权声明:本文为CSDN博主「clemente620」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_38130913/article/details/99797786
最后
以上就是自觉裙子最近收集整理的关于[python] 解决pip install download速度过慢问题 更换豆瓣源的全部内容,更多相关[python]内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复