anaconda 安裝python3.7後 無法導入ssl

1、安裝完andconda後,測試python安裝成功。

2、輸入指令:pip install tensorflow-gpu==2.1.0 時一直安裝不成功,看了下 輸出的信息有:WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

3、通過Anaconda3—>Anaconda Prompt,輸入: python ,再 輸入:import ssl時,就會有如下報錯:

 

4、解決辦法 參考博文

5、其中有效的辦法爲:“Removing both libssl-1_1-x64.dll and libcrypto-1_1-x64.dll in C:/Windows/System32/”

6、在import ssl時就成功了。

7、在執行 pip install tensorflow-gpu==2.1.0時,也正常了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章