如何从pip中取消代理?

发布于 2025-01-26 06:51:16 字数 811 浏览 1 评论 0原文

我有未设置的代理172.16.102.28:8080在“设置”选项中以及我的Ubuntu 20.04 System中的bash终端中。
当前系统中没有任何类型的代理。 但是,每当我尝试通过PIP安装Python软件包时,会出现以下错误。

name@dev:~$ pip install shutil
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after
connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection
object at 0x7f3e43b94670>, 'Connection to 172.16.102.28 timed out. 
(connect timeout=15)')': /simple/shutil/

My pip executable is located at `~/.local/bin/`
My `etc/apt/apt.conf` file is empty
My `/etc/environmemt` file only contains path
My `/etc/bash.bashrc` doesn't have any proxy set

I have unset proxy 172.16.102.28:8080 in the settings option as well as in the bash terminal in my Ubuntu 20.04 system.
There is no proxy of any kind set in the system currently.
But whenever I am trying to install a python package via pip, the following error comes up.

name@dev:~$ pip install shutil
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after
connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection
object at 0x7f3e43b94670>, 'Connection to 172.16.102.28 timed out. 
(connect timeout=15)')': /simple/shutil/

My pip executable is located at `~/.local/bin/`
My `etc/apt/apt.conf` file is empty
My `/etc/environmemt` file only contains path
My `/etc/bash.bashrc` doesn't have any proxy set

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无声静候 2025-02-02 06:51:16

啊,我只需要重新启动我的系统,问题就解决了。

Ah, I just had to restart my system and the problem was solved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文