python 安装 easy_install 的三种方式

来源:互联网 发布:阿里云注册 编辑:程序博客网 时间:2024/05/17 04:11


1 安装setuptools 

wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea  --no-check-certificate
sh setuptools-0.6c11-py2.7.egg 


测试 easy_install 出现 


error: No urls, filenames, or requirements specified (see --help)


表示成功





yum install python-setuptools




3 官方的安装方式
wget https://bootstrap.pypa.io/ez_setup.py -O -  --no-check-certificate| python


然后做软连接
ln -s  /usr/local/python2.7/bin/easy_install /usr/bin/easy_install
0 0