【问题标题】:Cannot install ipython on rhel 5.8 using pip无法使用 pip 在 rhel 5.8 上安装 ipython
【发布时间】:2012-10-11 20:55:56
【问题描述】:

我正在尝试在我的 rhel 5.8 服务器上安装 ipython,但它给出了以下错误。

└──> sudo pip install ipython
[sudo] password for ronak: 
Downloading/unpacking ipython
  Downloading ipython-0.13.tar.gz (6.1Mb): 6.1Mb downloaded
  Running setup.py egg_info for package ipython
    Traceback (most recent call last):
      File "<string>", line 14, in ?
      File "/usr/local/home/ronak/build/ipython/setup.py", line 23
        from __future__ import print_function
    SyntaxError: future feature print_function is not defined
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in ?

  File "/usr/local/home/ronak/build/ipython/setup.py", line 23

    from __future__ import print_function

SyntaxError: future feature print_function is not defined

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/ronak/.pip/pip.log

【问题讨论】:

    标签: python pip ipython python-2.4 rhel5


    【解决方案1】:

    IPython ≥ 0.11 需要 Python ≥ 2.6。该错误表明您使用的是 Python 2.5。

    如果你必须使用 Python 2.5,你可以这样做:

    pip install ipython==0.10.2
    

    支持 Python 2.5 的最后一个版本。

    【讨论】:

    • 我认为 0.10.2应该在 2.4 上工作,但由于 Python 2.4 的最后一次真正发布是在 2006 年,因此它还没有经过测试,也没有得到官方支持。跨度>
    猜你喜欢
    • 2013-01-30
    • 1970-01-01
    • 2016-08-16
    • 1970-01-01
    • 1970-01-01
    • 2018-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多