The Python packages are now installed via PIP.
So a very important step is to configure the PIP installation source
vi ~/.pip/pip.conf[global]index-url = http://pypi.douban.com/simple
In addition, the Python package on Mac has two locations
/system/library/frameworks/python.framework/versions/2.7/extras/lib/python
/library/python/2.7/site-Packages
First position is preferred.
Ways to manually remove packages
In the top two locations, locate the installation package, and then add the RM to it.
PIP installs additional packages
Install somepackage Install somepackage==1.0. 4 Install ' somepackage>=1.0.4 ' # minimum version
PIP Updates Other Packages
Install --upgrade somepackage
Pip Uninstalls other packages
Pip Uninstall Somepackage
PIP lists the installed packages
$ pip listdocutils (0.9. 1 ) Jinja2 (2.6) pygments (1.5) Sphinx (1.1. 2)
Configuring Python's installation Environment on Mac Miscellaneous notes