我有与此帖子相同的错误: Python PIP安装引发TypeError:-=:'Retry'和'int'的不受支持的操作数类型
无论我尝试使用pip安装哪种方式,我都会收到相同的错误。系统信息:Linux版本4.4.0-38-通用(build @ lgw01-58)(gcc版本5.4.0 20160609(Ubuntu 5.4.0-6ubuntu1〜16.04.2))#57-Ubuntu SMP 9月6日星期二15:42 :33 UTC 2016
如果我尝试使用在该问题上发布的解决方案,则会出现无法访问的错误:
$ sudo python get-pip.py
The directory '/home/theoa/.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.
The directory '/home/theoa/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the …Run Code Online (Sandbox Code Playgroud)