I created a conda environment - testenv2 - installed python/numpy/pandas. Added it as the interpreter in Eclipse project settings and using it to run my test python script. And I am getting the below error. The same test script works fine from command line when I activate the conda environment and run from with in it. It also works from PyCharm. But somehow fails to launch in Eclipse.
Traceback (most recent call last):
File "C:Dataprojectseclipse-workspacePythonEclipseTest.py", line 1, in <module>
import numpy as np
File "C:DatadevtoolsAnaconda3envsestenv2libsite-packages
umpy\__init__.py", line 140, in <module>
from . import _distributor_init
File "C:DatadevtoolsAnaconda3envsestenv2libsite-packages
umpy\_distributor_init.py", line 34, in <module>
from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
If I just run the same test script using my root Conda Python interpreter, it works fine. So it is only when I try to use the environment I created from conda.
Thanks for the help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…