2
votes

I want to import NumPy in pycharm to practice on arrays but am getting this error message and the code i created is...

**from Numpy import *

arr = linspace(0, 16, 16) print(arr)

''' E:\Anaconda\python.exe "C:/Users/Kenny T Mule Jnr/Desktop/try3.py" Traceback (most recent call last): File "C:/Users/Kenny T Mule Jnr/Desktop/try3.py", line 1, in from numpy import * File "E:\Anaconda\lib\site-packages\numpy__init__.py", line 140, in from . import _distributor_init File "E:\Anaconda\lib\site-packages\numpy_distributor_init.py", line 34, in from . import _mklinit ImportError: DLL load failed: The specified module could not be found.

'''

1
also have this problem. New job, corporate machine, installed Python 3.7.2, Anaconda (3.7.4), VS Code. The latter is where I am seeing this error, when using the Anaconda version of python as the interpreter (don't have numpy on the base Python install). Anaconda/Spyder was working 2 days ago but is now refusing to run (since installing OpenSSL).James

1 Answers

1
votes

Try reinstall numpy: pip uninstall numpy pip install numpy

It solved the same problem in my case.