2012-10-11 4 views
-1

J'essaye d'installer ipython sur mon serveur rhel 5.8 mais il donne l'erreur ci-dessous.Impossible d'installer ipython sur rhel 5.8 en utilisant pip

└──> 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 

Répondre

0

IPython ≥ 0,11 nécessite Python ≥ 2,6. Cette erreur suggère que vous avez Python 2.5.

Si vous devez utiliser Python 2.5, vous pouvez faire:

pip install ipython==0.10.2 

Quelle est la dernière version qui a soutenu Python 2.5.

+0

Et si j'ai python 2.4? – ronak

+0

Je pense que 0.10.2 * devrait * fonctionner sur 2.4, mais comme la dernière version de Python 2.4 date de 2006, elle n'a pas été testée et n'est pas officiellement supportée. – minrk

Questions connexes