Windows anaconda python3 import ssl error solution

I tried several solutions:

1. Did not work for me, link: https://blog.csdn.net/prospective0821/article/details/90409990?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

在环境变量中加入Anaconda的三个路径(依照自己当初设置的路径):
D:\Anaconda3;
D:\Anaconda3\Scripts;
D:\Anaconda3\Library\bin

2. It didn't work either, link: https://blog.csdn.net/u010180815/article/details/89311433

找到anaconda安装目录下的openssl目录,D:\Anaconda3\pkgs\openssl-1.1.1b-he774522_1\Library\bin
将该路径配置到Path中,并移至到最前。

3. It worked: link: https://blog.csdn.net/dailinqing1984/article/details/90579944

Download the corresponding version of the Python ZIP file on Python's official website .

After the download is complete, unzip and replace the _ssl.pyd file.

 

4. Did not work. Link: https://blog.csdn.net/fwj380891124/article/details/87179433

The path environment variable configured in pycharm is different from the system environment variable, resulting in the dll file of ssl not being found. Set in the Environment variables in Settings-> Build, Execution, Deployment-> Console-> Python Console in the File menu. The variable name PATH, the value needs to copy and paste all the contents of the PATH in the system environment variables.

 

Published 125 original articles · Like 31 · Visits 60,000+

Guess you like

Origin blog.csdn.net/Fiverya/article/details/104450941