我正在尝试将anacharda环境与pycharm一起使用。我确实是通过设置来设置环境的。如果我致电import numpy as np
,则会出现此错误:
D:\Anaconda3\envs\ml_test\python.exe D:/fac/python/b/test.py
Traceback (most recent call last):
File "D:/fac/python/b/test.py", line 1, in <module>
import numpy as np
File "D:\Anaconda3\envs\ml_test\lib\site-packages\numpy\__init__.py", line 140, in <module>
from . import _distributor_init
File "D:\Anaconda3\envs\ml_test\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.
Process finished with exit code 1
是的,环境确实包含numpy模块
编辑:通过重新安装anaconda进行了修复
答案 0 :(得分:0)
而且,您可以使用python 3.6 创建蟒蛇ENV进行实验,并查看https://anaconda.org/anaconda/numpy吗?
可能是从另一个Anaconda环境访问Pycharm,这将解决问题或澄清问题的真正根源?
很抱歉语法可能不正确。我已经尽力了:)