[zz] Python 3.7 anaconda environment - import _ssl DLL load fail error

https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error


C:\Users\abhil\AppData\Local\Continuum\anaconda3\envs\HeisenbergPy37\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py" --mode=client --port=63950
Traceback (most recent call last):
 File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.1\helpers\pydev\pydevconsole.py", line 5, in


D:\Anaconda3\python.exe "D:\Program Files\JetBrains\PyCharm 2018.3.3\helpers\pydev\pydevconsole.py" --mode=client --port=55113
Traceback (most recent call last):
 File "D:\Program Files\JetBrains\PyCharm 2018.3.3\helpers\pydev\pydevconsole.py", line 5, in


This can be fixed by manually adding in the PATH variables in PyCharm to the console.


  1. Open your Anaconda cmd


  2. Activate your Conda environment


  3. Get the full PATH value by typing echo %PATH%

  • if you are on Windows 7/can't copy the output, cd the cmd to your desktop and type echo %PATH% > path_val.txt


  • this will create a txt file so you can copy/paste the values easier.


In PyCharm, go to Settings -> Build, Execution, Deployment -> Console -> Python Console -> click the folder on the right of Environment variables.


Click the plus button to add a new Environment Variable

  • The name should be PATH


  • The value is the entire output from the echo %PATH% command above.


Click OK, then apply.