这是一个创建于 3486 天前的主题,其中的信息可能已经有所发展或是发生改变。
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
|
|
1
phantomer 2015-05-10 14:12:52 +08:00
额,加了个sudo就解决了。。
|
|
|
2
RIcter 2015-05-10 15:35:38 +08:00
OSError: [Errno 13] Permission denied: '/usr/bin/easy_install' /w\
|