Skip to content
Advertisement

ImportError: DLL load failed: The specified module could not be found in VS code Jupyter notebook with anaconda environment

I have anaconda installed and I have changed the interpreter on the top right to my anaconda environment. When imported a library I am getting the following error

JavaScript

I have added the following variables in PATH

JavaScript

I have added the following variables in Preferences:Settings(JSON)

JavaScript

None of the solutions worked.

Advertisement

Answer

Posting the answer if anyone is stuck on the same issue. After trying the two above-mentioned steps. I have opened the terminal in VS code and activated my environment

JavaScript

Next run

JavaScript

in the VS code’s terminal. If it does not work close VS code and repeat this step.

If the issue still persists then

  1. Open anaconda prompt.
  2. Change the directory to location where jupyter notebook is preset.
  3. execute code .
  4. Try running the import statement now.

Source

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement