随手记录一下pip、conda无法install的解决方法

Dolores
Written by Dolores on

具体表现为只能关闭代理installpackage,开启代理和添加bypass域名都无法下载,提示ssl错误
分别创建pip.ini, .condarc文件并在文件内添加以下内容

pip设置

C:\Users\username\AppData\Roaming\pip\pip.ini

[global]
http_proxy = http://localhost:1214   # 填写本地端口,下同
https_proxy = http://localhost:1214

conda设置

C:\Users\username\.condarc

proxy_servers:
  http: http://localhost:1214
  https: http://localhost:1214 

REF

User Guide - pip documentation v22.0.4
Python 遭遇 ProxyError 问题记录
[Feature Request] HTTP 系统代理增加协议头 · Issue #1787 · Fndroid/clash_for_windows_pkg
开启4.10自动系统代理后Python pip无法连接上国内清华源,但直接浏览器没问题 · Issue #1315 · 2dust/v2rayN
成功解决 ProxyError: Conda cannot proceed due to an error in your proxy configuration_littlehaes的博客 > 评论

Dolores

Dolores

蟾蜍被桃花香气所诱

Comments

comments powered by Disqus