Mac install PIP, Ipython

Source: Internet
Author: User

First, the MAC itself has been brought with Python, the version is 2.7.10.

But Pip and Ipython all need to install themselves, this article simply record the installation steps, in case of a rainy future;

1, Pip is the Python Package management tool (Mac default is not with Pip, so the first step to install PIP)

sudo easy_install pip  
...  
... n rows are omitted here ...  
...  
installed/library/python/2.7/site-packages/pip-7.1.2-py2.7.egg 
Processing dependencies for PIP finished processing dependencies for 
Pip

sudo pip install Ipython  
...  
.... Omit n rows ...  
...  
successfully installed appnope-0.1.0 decorator-4.0.4 gnureadline-6.3.3 ipython-4.0.0 ipython-genutils-0.1.0 path.py-8.1.2 pexpect-4.0.1 pickleshare-0.5 ptyprocess-0.5 simplegeneric-0.8.1 traitlets-4.0.0

Successful installation will display the information for the successful installation.

At this point the command line input Ipython, will enter the Ipthon shell mode, more convenient than the Python default shell code, such as the TAB key can automatically complement the same ...
About the use of Ipython can be self-search;

The following error was found during the installation of Ipython:

matplotlib 1.3.1 requires nose, which is not installed.

matplotlib 1.3.1 requires tornado, which is not installed.

Prompt-toolkit 1.0.15 has requirement six>=1.9.0, but you'll have six 1.4.1 which are incompatible.

To be Continued ...


Second, Mac installation Python3.6

View the number of system bits via UNAME-A, x86_64 stands for 64-bit

Use the Python command to view the system default version of OSX default installation 2.7.10, System Many Lib are based on python2.7, so still do not uninstall!!! Two versions of Python can be installed

: https://www.python.org/downloads/release/python-363/

Click Install after download is complete, sing the next step

To see if the installation was successful

Python3-v

Pip3-v

Later to use python2.7 or python3.6 directly with the number of the good!


Mac install PIP, Ipython

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.