Pycharm找不到python(conda env)包

时间:2019-02-15 07:59:49

标签: python numpy pycharm anaconda virtualenv

我正在使用conda env作为python解释器,并且已经安装了所有必需的软件包 enter image description here 但是当我运行文件时,出现此错误

Traceback (most recent call last):
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\core\__init__.py", line 16,
 in <module>
    from . import multiarray
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:/Programming Projects/python projects/MaskRCNN/src/test_tf.py", line 8
, in <module>
    import numpy as np
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\__init__.py", line 142, in
<module>
    from . import add_newdocs
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\add_newdocs.py", line 13, i
n <module>
    from numpy.lib import add_newdoc
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\lib\__init__.py", line 8, i
n <module>
    from .type_check import *
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\lib\type_check.py", line 11
, in <module>
    import numpy.core.numeric as _nx
  File "D:\Anaconda3\envs\tf\lib\site-packages\numpy\core\__init__.py", line 26,
 in <module>
    raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.


Process finished with exit code 1

但是当我从终端运行它时,它工作得很好

enter image description here 有人对可能的解决方案有任何线索吗?

1 个答案:

答案 0 :(得分:0)

这是已知的issue,应在2019.1 EAP中修复。您能更新检查吗?