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時,也正常了。