[PYTHON] Ll load failed in Anaconda environment construction: The specified module cannot be found. (import numpyas np file ....) Note that the error has been resolved.

Preface

I became a new member of society and resumed "machine learning starting with Python" that I had been doing halfway before job hunting. I got an error when I changed my computer and tried to run Anaconda after a long time. The code I was studying before has stopped working, so I will post the solution for the first time.

problem

import numpy as np file "c: \ programdata \ anaconda3 \ lib \ site-packages \ numpy \ init.py", line 140, in from. import _distributor_init file "c: \ programdata \ anaconda3 \ lib \ site- packages \ numpy \ _distributor_init.py ", line 34, in from. import _mklinit importerror: dll load failed: The specified module cannot be found.

Is displayed. Numpy etc. should work in the environment created in Anaconda, but I stumbled immediately after resuming study.

Cause

Path did not pass because I made a new PC. I was impressed that I used to work through Path. It was completely forgotten from the procedure for building an environment.

solution

  1. Click the windows mark

  2. Edit environment variables

  3. Click PATH in the user environment variable (U) of (user name)

  4. Click New (N)

  5. C: \ Users \ (user name) \ Anaconda3
    C: \ Users \ (user name) \ Anaconda3 \ Scripts
    C: \ Users \ (user name) \ Anaconda3 \ Library \ bin To add

in conclusion

From now on, I will post all the things I found out in my own way. I will do my best so that I can do the work of the company as soon as possible.

Recommended Posts

Ll load failed in Anaconda environment construction: The specified module cannot be found. (import numpyas np file ....) Note that the error has been resolved.
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
Dealing with Tensorflow error "Import Error: DLL load failed: Specified module not found" in deep learning
Error that Qt plugin "cocoa" cannot be found in python-opencv
[Corrective Measures] error: [WinError 2] The specified file cannot be found. ERROR: Command errored out with exit status 1
Jupyter Notebook 6.0.2 cannot be installed in the Python 2.7 environment created in Anaconda