ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos and ot

在ubuntu中使用conda相关命令出现报错:

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', and any other system-wide proxy
configuration settings.

原因:使用了网络代理

解决:

首先查看是否使用了网络代理:

 env | grep -i "_PROXY"

可以看到,我这里显示了很多代理

HTTP_PROXY=http://127.0.0.1:7890/
https_proxy=http://127.0.0.1:7890/
http_proxy=http://127.0.0.1:7890/
no_proxy=localhost,127.0.0.0/8,::1
NO_PROXY=localhost,127.0.0.0/8,::1
HTTPS_PROXY=http://127.0.0.1:7890/

然后删除网络代理,把每个网络代理都删除,这里不一一写出:

unset  HTTPS_PROXY

删除后能够正常使用conda命令

你可能感兴趣的:(ubuntu,conda,数据库)