-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install raises ValueError: check_hostname requires server_hostname #9972
Comments
This looks like a problem with your Python installation. What version of Windows are you using? |
set up separate issue #9975 |
This is a completely different error - your log shows "ValueError: Unable to find resource t32.exe in package pip._vendor.distlib" whereas the OP was getting "ValueError: check_hostname requires server_hostname". For your problem, one possible thought - is there a file called Regarding the OP's issue, we still need to know their Windows version to confirm whether it's supported by Python 3.9. |
You should open that as a separate issue. |
My windows10 version is 20H2. I have try many times, re-download or reinstall it, but the problem still happend. |
By the way, The python3.9 that install from microsoft store can work. |
Installing Python from the MS Store can get a bit "complicated". There're issues related to it all over the place, here's one I came across a while back - Why I didn't install Python from the Microsoft Store. Even the official docs has a brief section on the topic. The recommended to get Python is to use the officially provided installer for Windows (it'll even install |
According to StackOverflow, this is a consequence of urllib3’s proxy syntax change. So the instructions in #9216 (comment) likely would apply. |
It seems this is a urllib3 bug: urllib3/urllib3#2178. It has been fixed, but we’ll need a urllib3 release. I’ll add this to the 21.2 milestone. |
…hem by editing this script is no longer needed. - Note that pip 20.3 or later raises an error "ValueError: check_hostname requires server_hostname" when proxy server is used. Downgrading pip to 20.2.4 with "py -3 -m pip install pip==20.2.4" can avoid the error. Relating issue: pypa/pip#9972
Looks like Proxy issue, please try uninstalling any proxy software or remove proxy settings |
I had the same problem, just close the proxy. |
I don't think it cased by proxy, I'm very sure my problem appear without proxy. Anyway, (2021-06-28) I uninstall Python39 from microsoft store, and then reinstall python from https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe. It can work now. I don't known what happened. I have do many thing during this time, I'm not sure which operation fix this problem. Beside, even if I use proxy, I can also use |
you fixed my problem |
Fixed my problem |
Yeah, it's so cool! Fixed my problem! |
Description
I can't use pip to install anything
Expected behavior
install success
pip version
21.1.1
Python version
python 3.9
OS
Windows10 20H2
How to Reproduce
https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe
pip install xxxx
ValueError: check_hostname requires server_hostname
Output
The text was updated successfully, but these errors were encountered: