欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Archlinux安装pip及安装异常处理

程序员文章站 2022-07-12 13:15:55
...
> sudo pacman -S axel
> axel -a https://bootstrap.pypa.io/get-pip.py
> sudo python get-pip.py

就指令而言,就已经完成了,但它大概会出现2种异常

异常1,报错中含如下提示:

pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
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.

解决办法:换个好点儿网络再多试几次;

异常2,权限问题,换root权限帐号或加sudo

转载于:https://my.oschina.net/quicker/blog/1503850