[Under Ubuntu, conda fails to create an environment and reports an error: ProxyError: Conda cannot proceed due to an error in your proxy configuration

Problem report

Using conda to create an environment encountered an error: "ProxyError: Conda cannot proceed due to an error in your proxy configuration".
After trying many online methods, I feel that there is no solution that can cure all diseases. According to the online solution, the following experience is summarized for everyone Reference:
Try to switch to a domestic source first, if it is solved, it will be ok, skip the following article.
If it is not resolved, close the proxy.
insert image description here

solution

View the current terminal proxy:
insert image description heredelete, HTTPS, HTTP, http and other proxies in turn
insert image description here

unset http_proxy
unset https_proxy
unset no_proxy
unset HTTP_PROXY
unset HTTPS_PROXY
unset NO_PROXY

Finally, create the environment to succeed!
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43789096/article/details/123541755