I have a Project working in PyCharm with the Anaconda3 Python 3.7 interpreter. When I run it from PyCharm there is no issue, but when I run it from cmd (same interpreter) with:
c:\users\xxx\appdata\local\continuum\anaconda3\python main.py
I get:
File "c:\Users\xxx\PycharmProjects\LibreriaDerivados\Calculator\Calculator.py", line 1, in <module>
import numpy as np
File "c:\users\xxx\appdata\local\continuum\anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module>
from . import _distributor_init
File "c:\users\xxx\appdata\local\continuum\anaconda3\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
So I checked just accessing Python in cmd works, but then inside when I do import numpy I get the same error.
Additional info:
- dir
C:\users\xxx\AppData\Local\Continuum\anaconda3\Lib\site-packages\numpyexists. - Inside that dir
__init__.py,__distributor_init.pyfiles exist, but no_mklinitfile. - There is a
_mklinit.cp37-win_amd64.pydfile. Making a copy named_mklinit.pydwon't help.