使用easy_install,ipython报错

[root@localhost setuptools-3.3]# easy_install pip
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 2749, in <module>
                    
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 446, in _build_master
                    
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 459, in _build_from_requirements
    is returned.
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 628, in resolve
    error that occurred. Usually this will be a ``DistributionNotFound`` or
pkg_resources.DistributionNotFound: setuptools==0.9.6


因为之前的python版本为2.4的后来升级为2.7的,但是easy_install还是读取2.4的配置

所以要重新做个软连接

[root@localhost bin]# ln -s /usr/local/python2.7/bin/easy_install /usr/bin/easy_install
ln: 正在创建指向“/usr/local/python2.7/bin/easy_install”的符号链接“/usr/bin/easy_install”: 文件已存在
[root@localhost bin]# rm -rf /usr/bin/easy_install
[root@localhost bin]# ln -s /usr/local/python2.7/bin/easy_install /usr/bin/easy_install


ipython同样的原理,安装完ipython后无法使用,同样创个软连接

[root@localhost ipython-1.2.1]# ln -s /usr/local/python2.7/bin/ipython /usr/bin/ipython
[root@localhost ipython-1.2.1]# ipython
Python 2.7.6 (default, Feb 14 2014, 06:05:34)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.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]:


本文出自 “always_yunwei” 博客,请务必保留此出处http://alwaysyunwei.blog.51cto.com/3224143/1381739

使用easy_install,ipython报错,布布扣,bubuko.com

使用easy_install,ipython报错

上一篇:C++最小二乘法拟合-(线性拟合和多项式拟合)


下一篇:C语言中unsigned char与char的区别