ubuntu16.04下更新pip
2016-12-10 20:41
92 查看
使用pip install –upgrade pip 总是报错。。。。
Uninstalling pip-7.1.0:
Exception:
Traceback (most recent call last):
File “/usr/lib/python3.5/shutil.py”, line 538, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg’ -> ‘/tmp/pip-whm8ys6u-uninstall/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg’
尝试用如下命令进行更新pip成功解决了以上的问题
sudo python -m pip install –upgrade pip
The directory ‘/home/wang/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install –upgrade pip’ command.
The directory ‘/home/wang/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 127kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.0
Uninstalling pip-7.1.0:
Successfully uninstalled pip-7.1.0
Successfully installed pip-9.0.1
Uninstalling pip-7.1.0:
Exception:
Traceback (most recent call last):
File “/usr/lib/python3.5/shutil.py”, line 538, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg’ -> ‘/tmp/pip-whm8ys6u-uninstall/usr/local/lib/python3.5/dist-packages/pip-7.1.0-py3.5.egg’
尝试用如下命令进行更新pip成功解决了以上的问题
sudo python -m pip install –upgrade pip
The directory ‘/home/wang/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install –upgrade pip’ command.
The directory ‘/home/wang/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 127kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.0
Uninstalling pip-7.1.0:
Successfully uninstalled pip-7.1.0
Successfully installed pip-9.0.1
相关文章推荐
- ubuntu和windows上pip和windows上conda国内源更新module
- Linux-Ubuntu16.04下Python3.5安装pip3以及scrapy、numpy、itchat
- [原创] 更新Ubuntu自带的python2.X版本 ImportError: No module named pip;ImportError: No module named _sqlite3
- Linux 系统操作简记 -- 修改Ubuntu apt-get 与 pip更新源,提高安装速度
- ubuntu16.04下pip安装第三方库时提示:You are using pip version 8.1.1, however version 9.1.0 is available.
- Ubuntu 16.04 pip更新失败
- ubuntu修改pip更新源
- Ubuntu16.04下配置pip国内镜像源加速安装
- Ubuntu 16.04下无法将pip从8.1.2升级到9.0.1的解决办法
- ubuntu 下pip的卸载,安装,更新与使用
- Ubuntu 16.04下更新Atom
- ubuntu 8.04更新源列表
- Ubuntu 7.10 中把软件源修改为国内源及更新
- ubuntu7.0.4 教育网更新源
- Ubuntu 8.04LTS 更新源
- ubuntu 更新源
- 0.Ubuntu下的一些小问题的解决方法(持续更新中)
- ubuntu更新软件源、更新系统(很好的源)!
- 标题: [问题]更新问题……dpkg处理msttcorefonts(--configure)出错[转自ubuntu中文论坛]
- Gentoo 与 Ubuntu 下的字体调整 (12.06 更新)[zt]