pip is configured with locations that require TLS/SSL, however the ssl module in Python is not 解決方法

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 解決方法

問題

今天在安裝 Pygame 的時候,發現照着之前自己寫的教程出現了問題。

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

解決方法

其實還是 Anaconda 環境變量的問題。

Win + R ,輸入:SystemPropertiesAdvanced.exe ,回車。

然後點擊 環境變量

進入 系統變量 ,找到 PATH ,點擊編輯:

只需把這三個加上就行。

C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3\Library\bin

致謝

windows pip is configured with locations that require TLS/SSL, however the ssl module in Python

發佈了307 篇原創文章 · 獲贊 399 · 訪問量 25萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章