V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
phantomer
V2EX  ›  Python

pip 升级问题

  •  
  •   phantomer · 2015-05-10 14:08:28 +08:00 · 2661 次点击
    这是一个创建于 3514 天前的主题,其中的信息可能已经有所发展或是发生改变。
    pip install xxxx

    报错:

    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1431, in install
    requirement.uninstall(auto_confirm=True)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 598, in uninstall
    paths_to_remove.remove(auto_confirm)
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1836, in remove
    renames(path, new_path)
    File "/usr/lib/python2.7/dist-packages/pip/util.py", line 295, in renames
    shutil.move(old, new)
    File "/usr/lib/python2.7/shutil.py", line 303, in move
    os.unlink(src)
    OSError: [Errno 13] Permission denied: '/usr/bin/easy_install'

    Storing debug log for failure in /home/phantomer/.pip/pip.log


    查了是pip版本太低。apt-get install pip是最新的了。
    机子是python2.7

    有没有大神给我源之类的给我升级一下pip

    或者有其他解决的方法。
    3 条回复    2015-05-12 21:27:12 +08:00
    phantomer
        1
    phantomer  
    OP
       2015-05-10 14:12:52 +08:00
    额,加了个sudo就解决了。。
    RIcter
        2
    RIcter  
       2015-05-10 15:35:38 +08:00
    OSError: [Errno 13] Permission denied: '/usr/bin/easy_install'
    /w\
    phantomer
        3
    phantomer  
    OP
       2015-05-12 21:27:12 +08:00
    @RIcter (+﹏+)~狂晕
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3662 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:32 · PVG 12:32 · LAX 20:32 · JFK 23:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.