亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

python自動(dòng)安裝pip

 更新時(shí)間:2014年04月24日 10:04:51   作者:  
這篇文章主要介紹了python自動(dòng)安裝pip的示例,需要的朋友可以參考下

如果是windows安裝完成后,需要將'\Python27\Scripts\'加入系統(tǒng)環(huán)境變量

復(fù)制代碼 代碼如下:

# coding=utf-8
import os
import urllib2
url='https://raw.github.com/pypa/pip/master/contrib/get-pip.py'
print 'load begin,please waite'
response=urllib2.urlopen(url)
with open('./download.py','w') as f:
 f.write(response.read())
print 'load end'

import download
download.main()

print 'clear up'
filepath=['./download.py','./download.pyc']
try:
 for path in filepath:
  os.remove(path)
except :
 pass

print 'insall pip success,please add \'\Python27\Scripts\' to u enveronment path'

相關(guān)文章

最新評(píng)論