“ValueError: check_hostname requires server_hostname“ when trying to update conda

After updating CONDA, an error is reported:
valueerror: check_ hostname requires server_ Hostname
this is the problem of scientific Internet port.
Solutions:
1. Check the port number of Science Internet.
2. Add the port number in the. Condarc file.
Check where. Condarc is under windows.
windows:C:\users\username\,linux:/home/username/
3、pip install urllib3==1.25.11。
The contents of condarc file are as follows:

ssl_verify: true
show_channel_urls: true
report_errors: false

Add a piece of code below and modify it as follows:

ssl_verify: true
show_channel_urls: true
report_errors: false
proxy_servers: {http: 127.0.0.1:8888, https: 127.0.0.1:8888}

note that if you change the following 8888 to your own port number, the estimation of each port is different.

Read More: