Heim > Artikel > Backend-Entwicklung > python自动安装pip
如果是windows安装完成后,需要将'\Python27\Scripts\'加入系统环境变量
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'