pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
This error occurred when installing a module using pip today. I checked a lot of information and found that it was an Anaconda
environment variable problem.
Add the following variables in the system environment to restart.
D:\ProgramData\Anaconda3
D:\ProgramData\Anaconda3\Scripts
D:\ProgramData\Anaconda3\Library\bin
参考
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not 解决方法