pip 升级问题

2015-05-10 14:08:28 +08:00
 phantomer
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

或者有其他解决的方法。
2552 次点击
所在节点    Python
3 条回复
phantomer
2015-05-10 14:12:52 +08:00
额,加了个sudo就解决了。。
RIcter
2015-05-10 15:35:38 +08:00
OSError: [Errno 13] Permission denied: '/usr/bin/easy_install'
/w\
phantomer
2015-05-12 21:27:12 +08:00
@RIcter (+﹏+)~狂晕

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/189919

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX