推荐学习书目
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 · May 10, 2015 · 3151 views
    This topic created in 4099 days ago, the information mentioned may be changed or developed.
    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 replies    2015-05-12 21:27:12 +08:00
    phantomer
        1
    phantomer  
    OP
       May 10, 2015
    额,加了个sudo就解决了。。
    RIcter
        2
    RIcter  
       May 10, 2015
    OSError: [Errno 13] Permission denied: '/usr/bin/easy_install'
    /w\
    phantomer
        3
    phantomer  
    OP
       May 12, 2015
    @RIcter (+﹏+)~狂晕
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    ♥ Do have faith in what you're doing.