I ran into the same issue on Windows 10. My very specific issue is related to my Anaconda installation. I installed Anaconda and along the Path/to/Anaconda3/ path, python.exe appears there. So I did not install python at all, because Anaconda includes python. When using pip to install packages, I found the same error report, pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. ,
The solution was as follows:
1) you can download python again on the official website ;
2) Go to the directory where "Python 3.7 (64-bit).lnk"
3) import ssl and exit()
4) enter cmd, for example, "Python 3.7 (64-bit).lnk" -m pip install tensorflow , "Python 3.7 (64-bit).lnk" -m pip install tensorflow .
Everything is ready here.
source share