在windows下使用pip安裝第三方庫試,報SSLError,
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
解決辦法:
先考慮更換為國內源
C:\Users\用戶\xx\AppData\Roaming 這里的xx指代的是你電腦的登錄的用戶名
進入pip文件夾,創建pip.ini文件,內容如下
[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host = mirrors.aliyun.com
嘗試過后,雖然源修改成功了,但是還是報一樣的錯,接下來需要安裝一個文件
https://slproweb.com/products/Win32OpenSSL.html
點擊EXE下載安裝后,再次嘗試,即可成功