无法安装 BS4,也无法在 PyCharm 中导入/使用任何其他包

无法安装 BS4,也无法在 PyCharm 中导入/使用任何其他包

成功安装了 numpy,但是当我将其导入程序时,显示以下错误

Traceback (most recent call last):
  File "D:\Anaconda\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
    from . import multiarray
ImportError: DLL load failed: Le module spécifié est introuvable.(specified module cannot be found)

在处理上述异常的过程中,又发生了另一个异常:

Traceback (most recent call last):
  File "C:/Users/devan/PycharmProjects/PyTest/test1.py", line 1, in <module>
    import numpy as np
  File "D:\Anaconda\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "D:\Anaconda\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "D:\Anaconda\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "D:\Anaconda\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "D:\Anaconda\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: Le module spécifié est introuvable.


Process finished with exit code 1

答案1

应该在 PyCharm 2019.1 中修复(https://youtrack.jetbrains.com/issue/PY-27234)。 抢先体验预览版可在此处获取https://www.jetbrains.com/pycharm/nextversion/

相关内容