What to do if an error occurs when importing numpy with VScode

environment

I want to write python quickly with VScode! In such a case, when I imported numpy, it stopped reading with an error.

Event

When I import numpy in VScode on Windows, I get an error.


ImportError: DLL load failed:The specified module cannot be found.

There is no problem with jupyter notebook etc., but it can be imported, but for some reason only VScode is not imported.

Cause

The error message says that mklinit cannot be imported.


File "D:\Anaconda3\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
from . import _mklinit

In VScode, when I run python from PowerShell, I don't know the path of the mkl module, so I get an error.

Coping

Add the module path. (When installed in D: \ Anaconda3)


D:\Anaconda3\Library\bin

Recommended Posts

What to do if an error occurs when importing numpy with VScode
What to do when an error occurs with import _ssl
[Beanstalk] What to do when an error occurs with import uuid
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if an error occurs when loading a python project created with poetry into VS Code
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if pyenv install does not proceed with an error
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
[OSX] [pyenv] What to do when an SSL error occurs in pip
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
[python] What to do when an error occurs in send_keys of headless chrome
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
What to do when a Remove Error occurs when updating conda
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do if you run python in IntelliJ and end with an error
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if a communication error occurs due to proxy when installing with package management of pip, npm, gem
What to do if you couldn't send an email to Yahoo with Python.
[Python] What to do when an error related to SSL authentication is returned
What to do if you get a TypeError with numpy min, max
What to do when PermissionError of tempfile.mkstemp occurs
Rollback processing when an error occurs with fabric
An error occurs when importing japandas (problem unsolved)
What to do if pip --user returns an error in a virtual environment created with pyenv
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do if an error occurs in TensorFlow RNN related import or RNN (LSTM) Cell (v 0.11r ~)
Workaround if you get an error when trying to install PySide with pip
What to do if CERTIFICATE_VERIFY_FAILED occurs when nltk.download () is done on macOS pyhon
An error occurs when trying to import scikit-learn after connecting to Oracle with SQLAlchemy
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if a version error occurs in the selenium Chrome driver
What to do if a UnicodeDecodeError occurs in pip
A memorandum when an error occurs with pip install
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if the print command itself causes an error in Maya python
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
[AWS] What to do when you want to pip with Lambda
After installing CentOS8 with VirtualBox, an error occurs when restarting
What to do if you can't sort files with subscripts
What to do if package installation fails when deploying to heroku
What to do when Ubuntu crashes
What to do if yum breaks
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do with Magics install
What to do with PYTHON release?
What to do if ʻObject arrays cannot be loaded when allow_pickle = False` occurs in numpy.load ()
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you can't install pyaudio with pip #Python
I get an error when trying to install maec 4.0.1.0 with pip
What to do if you get a UnicodeDecodeError with pip install
What to do if Insecure Platform Warning appears when running Python
What to do if you can't build your project with Maven
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())