描述:
在python2.7環境下,使用最新的pip(18.1)安裝ipython,出現以下錯誤消息:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-F9ixVH/ipython/
解決:
仔細查看報錯原因,發現以下信息:
IPython 7.0+ supports Python 3.5 and above.
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
Python 3.3 and 3.4 were supported up to IPython 6.x.
python2.7最高只能支持ipython5.x版本。
在pypi上查看ipython的歷史版本,然後輸入:
pip install ipython=5.8.0