您的位置:首页 > 编程语言 > Python开发

Python - Windows下安装easy_install, pip 及whl文件安装方法

2015-11-16 17:50 851 查看
整理下easy_install的安装方法。有一键安装脚本!


安装easy_install

下载ez_setup.py

from urllib import urlopen
data = urlopen('http://peak.telecommunity.com/dist/ez_setup.py')
with open('ez_setup.py', 'wb') as f:
f.write(data.read())


在命令行中运行ez.setup.py



一键脚本

import os
file_name = 'ez_setup.py'
from urllib import urlopen
data = urlopen('http://peak.telecommunity.com/dist/ez_setup.py')
with open(file_name, 'wb') as f:
f.write(data.read())
os.system('python %s' % (os.path.join(os.getcwd(),file_name)))



安装pip

easy_install pip





安装whl文件

pip install whatever.whl


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: