在python中导入时安装panda后错误:模块'os'没有属性'add_dll_directory'

rsaldnfx  于 2022-12-02  发布在  Python
关注(0)|答案(1)|浏览(1838)

在python中导入时安装panda后,我得到了以下错误:

File "<stdin>", line 1, in <module>
  File "C:\Users\ss\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\__init__.py", line 11, in <module>
    __import__(dependency)
  File "C:\Users\ss\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\__init__.py", line 126, in <module>
    from numpy.__config__ import show as show_config
  File "C:\Users\ss\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\__config__.py", line 13, in <module>
    os.add_dll_directory(extra_dll_dir)
AttributeError: module 'os' has no attribute 'add_dll_directory'
6ss1mwsb

6ss1mwsb1#

删除Numpy软件包并重新安装。错误将消失。

相关问题