ubuntu系统解决:ProxyError: Conda cannot proceed due to an error in your proxy configuration.

        在安装anaconda后,我们有时安装一些比较低版本的库需要新建一个环境好分开。

        但是由于原先用梯子,代理改得一团糟。在创建环境时,即:

conda create -n tf18 pip python=3.6

        这时会报错代理错误:

ProxyError: Conda cannot proceed due to an error in your proxy configuration. Check for typos and other configuration errors in any '.netrc' file in your home directory, any environment variables ending in '_PROXY',
...

        找了一圈,网上很多改windows的,改~/.bashrc的,但是~/.bashrc显示权限不足,也改不了。运行了一通没什么用,最后转变思路,搜索如何关闭ubuntu代理,解决了该问题:

        1.查看当前使用代理:

env | grep -i proxy

        2.去掉相关代理

gedit /etc/enviroment 

        3.还有~/.bashrc /etc/profile中的代理,然后source两个文件。

source .bashrc
source /etc/profile

        4.如果还存在代理,运行:

unset http_proxy
unset https_proxy

        有需要的话重启一下
        参考的原文:ubuntu取消代理_ubuntu 关掉代理_fxxxkming的博客-CSDN博客

扫描二维码关注公众号,回复: 16729803 查看本文章

猜你喜欢

转载自blog.csdn.net/weixin_43907136/article/details/129335795