Pycharm找不到python(conda env)包

问题描述 投票:0回答:1

我正在使用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有没有人知道什么可能是一个修复?

python numpy pycharm anaconda virtualenv
1个回答
0
投票

它是一个已知的issue,应该固定在2019.1 EAP。你能更新一下吗?

© www.soinside.com 2019 - 2024. All rights reserved.