Total Pageviews

Monday, 18 November 2013

解决No module named pkg_resources问题

curl http://python-distribute.org/distribute_setup.py | python
或者

cd ~
wget http://python-distribute.org/distribute_setup.py
python distribute_setup.py
这样easy_install程序就装好了


easy_install是个很有用的程序,用来安装一些python modules,比如
easy_install docutils
easy_install lxml
easy_install pip

我觉得easy_install xxx比pip install xxx好用些。pip本身就是靠easy_install来安装的-
 easy_install pip
-------------------------------
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py build
python setup.py install
And also you can use a packaging management tool to install(pip, distribute, setuptool, easy_install).