为什么80%的码农都做不了架构师?>>>
1、下载ez_setup.py,并执行
wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
2、安装完后,最好确保easy_install所在目录已经被加到PATH环境变量里,easy_install的目录为
/usr/local/bin
在使用过程中出现如下问题:
Traceback (most recent call last):
File "/usr/bin/easy_install", line 9, in
load_entry_point('distribute==0.7.3', 'console_scripts', 'easy_install')()
File "/usr/local/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg/pkg_resources/__init__.py", line 546, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg/pkg_resources/__init__.py", line 2665, in load_entry_point
raise ImportError("Entry point %r not found" % ((group, name),))
ImportError: Entry point ('console_scripts', 'easy_install') not found
解决问题如下:
1)删除easy_install
sudo rm -f /usr/bin/easy_install*
sudo rm -f /usr/local/bin/easy_install*
2)安装distribute
curl -O https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
sudo python distribute_setup.py
sudo rm distribute_setup.py