安裝ipython很簡單,直接使用pip就行
比如mac環境下:pip install ipython;提示安裝失敗,原因是pip默認安裝的ipython版本6.0+不適用python3.3以下版本
pip install ipython
Collecting ipython Downloading http://mirrors.aliyun.com/pypi/packages/fa/50/974211502bd72873728d44c3013fe79875c819c8fb69f778bcfd67bc7d38/ipython-6.2.1.tar.gz (5.1MB) 100% |████████████████████████████████| 5.1MB 5.6MB/s Complete output from command python setup.py egg_info: IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2. When using Python 2.7, please install IPython 5.x LTS Long Term Support version. Beginning with IPython 6.0, Python 3.3 and above is required. See IPython `README.rst` file for more information: https://github.com/ipython/ipython/blob/master/README.rst Python sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0) detected. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/f2/cwy5vc4n4_v3q8qt7q09q1dh0000gn/T/pip-build-4fnKGC/ipython/ 安裝一個不存在的ipython版本5.xx,然后就會出現所有可以安裝ipython版本
➜ ~ pip install ipython==5.xx Collecting ipython==5.xx Could not find a version that satisfies the requirement ipython==5.xx (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1) No matching distribution found for ipython==5.xx
安裝一個5.5.0版本
啟動:ipython
參考:
1、http://ipython.org/install.html
