使用公司内网的机器安装 anaconda ,要使用代理才能 正常联网
。如下几种方式但始终 不成功 提示代理错误
-
设置ananconda 的 .condarc 的 proxy_servers字段
https_proxy https://xxxx.sxxxx:8080
http_proxy http://xxx.x.sxxxx:8080 -
设置系统变量
HTTPS_PROXY ="https://xxxx.sxxxx:8080"
HTTP_PROXY="http://xxx.sxxxxx:8080"
都不行 始终提示 代理错误, 突然发现 提示 你的 https_proxy 实际是 http 协议不是 https协议,请将https_proxy改为 http协议
于是 将
https_proxy https://xxxx.sxxxx:8080
HTTPS_PROXY ="https://xxxx.sxxxx:8080"
改为
**https_proxy http://xxxx.sxxxx:8080
HTTPS_PROXY ="http://xxxx.sxxxx:8080"
**
重启系统, 成功,可以通过代理 下载更新文件le
我的具体步骤
1.
在 /etc/profile.d/下 建立 proxy.sh文件, 填写如下信息
export https_proxy="http://xxx.xxxxxxxx:8080"
export http_proxy="http://xxx.xxxxxxxx:8080"
export ftp_proxy="http://xxx.xxxxxxxx:8080"
export no_proxy="localhost, 127.0.0.0/8,..."
export HTTPS_PROXY="http://xxx.xxxxxxxx:8080"
export HTTP_PROXY="http://xxx.xxxxxxxx:8080"
export FTP_PROXY="http://xxx.xxxxxxxx:80800"
export NO_PROXY="localhost, 127.0.0.0/8,..."
保存 重启系统。
2.通过修改 ~/.condarc 设置https代理为http://xxx.xxxxx:8080 也可以
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)