IPython Installation Method

Source: Internet
Author: User

Ipython is a python interactive shellthat provides useful features such as automatic completion of code, automatic indentation, highlighting, and execution of shell commands. In particular, its code completion function, for example: After entering zlib. Press the TAB key, Ipython lists all the properties, methods, and classes under the Zlib module. Can completely replace your own bash

Here are four ways to install Ipython under Linux:

The first type: Ipython source installation
Ipython's Source download page is: Https://pypi.python.org/pypi/ipython

Or go to the git page to download: https://github.com/ipython/ipython/downloads
Suppose we download a file named: ipython-0.8.2.tar.gz
#tar zvxf ipython-0.8.2.tar.gz //Extract Files
#cd ipython-0.8.2 //Enter the folder you just unzipped

After entering the file add, you will see a setup.py installation script, run the following command to install
#python setup.py Install

This will install the Ipyhon library file in the Site-packages directory and create a Ipython script in the scripts directory. In UNIX systems, the directory is the same as the Python binary file directory. If a Python package is already installed on the system, Ipython will be installed in the/usr/bin directory.

The second type: Install the Ipython package through the system's package manager.
such as the. Deb package can be obtained on Debian and Ubuntu directly with the following command:
#apt-get Install Ipython //ubuntu the Ipython library file to the/usr/share/python-support/ipython directory, Includes a series of. pth files and symbolic links, while Ipython binaries are installed in the/usr/bin/ipyton directory.

Redhat (CentOS) uses the following command:

# Yum List | grep ipython //See if the Yum source you are using has a Ipython package, if not, it can only be replaced or source installed, there seems to be no domestic

# Yum Install Ipython.noarch //Installation Ipython

or through the RPM package installation, the command is as follows:

#rpm-IVH https://dl.fedoraproject.org/pub/epel/6/x86_64/ipython-0.10-3.el6.noarch.rpm

The third type: Install via Python package.
Ipython is included in the Python package. After extracting the Python package, you can see a file with an. egg extension.  The egg file can be installed through the Easy_install tool. The Easy_install tool can check the configuration of the egg file and select what needs to be installed. The Easy_install tool determines the installation of a package through the index of the Python package (Python packages index, referred to as PyPI, also known as Python cheeseshop). Installing Ipython using the Easy_install tool requires only the user to have write access to the Site_package directory and run directly
#easy_install Ipython

Ps: As long as you have installed the Easy_install tool, so if you want to use this method to install, you need to install Setuptools before using the Easy_install tool.

The fourth kind: directly does not install is used.
After downloading the Ipython source code, after running the ipython.py installation command, you can use the Ipython instance in the download version. This method can keep the Site-packages directory concise, but it will also bring some problems, that is, if not decompression ipython, there is no modification pythonpath environment variables, Ipython will not be used as a library file directly.

I personally recommend the installation of the source code

If you have questions, you can go to the official View Installation documentation Tutorial:

Http://ipython.org/ipython-doc/stable/install/install.html

Http://ipython.org/install.html

The fifth type:

Yum List | grep Ipython

[email protected] ~]# Yum List | grep Ipython
Python-ipython.noarch 3.2.1-1.el7 @epel
Python-ipython-console.noarch 3.2.1-1.el7 @epel
Python-ipython-gui.noarch 3.2.1-1.el7 @epel
Python-ipython-doc.noarch 3.2.1-1.el7 Epel
Python-ipython-sphinx.noarch 3.2.1-1.el7 Epel
Python-ipython-tests.noarch 3.2.1-1.el7 Epel
Python2-ipython_genutils.noarch 0.1.0-7.el7 Epel
Python34-ipython_genutils.noarch 0.1.0-7.el7 Epel

Yum Install Python-ipython.noarch-y

IPython Installation Method

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.