解決安裝ipython時Command "python setup.py egg_info" failed with error code 1 in /tmp

來源:互聯網
上載者:User

標籤:ipython   pip   failed   python2.7   ipython 6.0+   

最近使用ubuntu16.04 server版安裝ipython的時候一直在報錯:

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.python2.7 ipython Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Vxrpi9/ipython/


下面的報錯無所謂,沒有解決辦法,也找不到。關鍵是上面說明的版本資訊,由於ubuntu16.04預設python版本是python2.7,所以使用原來CentOS6.x或者ubuntu14.04的習慣安裝方法是不可行的,需要使用IPython 5.x LTS才可以,所以去PyPI網站下載了ipython-5.4.1-py2-none-any.whl。


具體操作步驟:

[email protected]:~$ wget https://pypi.python.org/packages/f7/48/5702699caf20208d61a92157c01d1eb281093e3e02e9bcd4b5031ccea6a1/ipython-5.4.1-py2-none-any.whl#md5=2b801f50b5e82a3fabca42b661568bf5[email protected]:~$ sudo pip install ipython-5.4.1-py2-none-any.whl

再試一下就可以了。

[email protected]:~$ ipythonPython 2.7.12 (default, Nov 19 2016, 06:48:10) Type "copyright", "credits" or "license" for more information.IPython 5.4.1 -- An enhanced Interactive Python.?         -> Introduction and overview of IPython‘s features.%quickref -> Quick reference.help      -> Python‘s own help system.object?   -> Details about ‘object‘, use ‘object??‘ for extra details.In [1]:

 



本文出自 “LINUX” 部落格,請務必保留此出處http://wangpengtai.blog.51cto.com/3882831/1963283

解決安裝ipython時Command "python setup.py egg_info" failed with error code 1 in /tmp

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.