【发布时间】:2014-11-21 11:45:42
【问题描述】:
我今天在 centos 6.4 上安装了 pip,并尝试通过 pip 安装 python 库。
但是,我得到了以下错误。
ERROR: IPython requires Python version 2.7 or 3.3 or above.
Complete output from command python setup.py egg_info:
ERROR: IPython requires Python version 2.7 or 3.3 or above.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_username/ipython
Storing debug log for failure in /home/username/.pip/pip.log
虽然错误信息说我需要 Python 2.7 或更高版本,但我已经安装了 python 2.7。
$ which python
/usr/local/bin/python
$ python --version
Python 2.7.8
我不确定是否导致我在“usr/bin/python”中有 python2.6 导致了这个问题。
$ sudo python --version
Python 2.6.6
【问题讨论】:
标签: python python-2.7 pip python-2.6