简体   繁体   中英

after installing panda while importing in python Error: module 'os' has no attribute 'add_dll_directory'

After installing panda while importing in python I got the following Error:

 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'

Remove Numpy Package and install again. The error should go away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM