Python pip建立pip.ini 修改为Aliyun源下载三方模块
""" python建立pip.ini Aliyun源 2020年5月3日20:28:50 Venti Fang """ import os ini = """ [global] index-url = https://mirrors.aliyun.com/simple/ [install] trusted-host=mirrors.aliyun.com """ pippath = os.environ["USERPROFILE"] + "\\pip\\" #C:\Users\84788\pip\ # print(pippath) if not os.path.exists(pippath): os.mkdir(pippath) with open(pippath + "pip.ini", "w+") as f: f.write(ini)
相关推荐
iFlyAI 2020-09-14
xinhao 2020-07-20
taiyangshenniao 2020-06-25
pythonxuexi 2020-06-25
zhaobig 2020-06-25
qingqingpiaoguo 2020-06-22
yjsflxiang 2020-06-14
txlCandy 2020-06-09
bizercsdn 2020-06-08
JakobHu 2020-05-27
davidliu00 2020-05-26
Laozizuiku 2020-05-17
zcabcd 2020-05-15