安装easy_install的方法

来源:互联网 发布:螺纹铣刀怎么编程 编辑:程序博客网 时间:2024/05/21 01:32

centos下安装

http://blog.csdn.net/jubincn/article/details/6683350

在安装Trac的时候首先要安装Babel,官方文档上Babel是通过easy_install安装的,在CentOS中安装easy_install的方法:

%yum install python-setuptools

或者

%yum install python-setuptools-devel

windows下安装

http://www.cnblogs.com/zhuyp1015/archive/2012/07/17/2596495.html

内容:

引用内容 以下是在IDLE中进行的:

Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32|

>>>from urllib import urlopen>>>data=urlopen('http://peak.telecommunity.com/dist/ez_setup.py')>>>open('ez_setup.py','wb').write(data.read())>>>exit()Use exit() or Ctrl-Z plus Return to exit

以下是在windows控制台进行的:

D:\ProgramFile\Python2.7>python ez_setup.py
0 0
原创粉丝点击