Configuring Python's installation Environment on Mac Miscellaneous notes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.