Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/322.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我安装了pandas,但在导入时我';我犯了错误_Python_Python 3.x_Pandas - Fatal编程技术网

Python 我安装了pandas,但在导入时我';我犯了错误

Python 我安装了pandas,但在导入时我';我犯了错误,python,python-3.x,pandas,Python,Python 3.x,Pandas,这就是我在空闲状态下导入熊猫时遇到的错误(Python 3.8 64位) 导入熊猫 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 进口大熊猫 文件“C:\Users\hp\AppData\Local\Programs\Python38\lib\site packages\pandas\\uuuuuu init\uuuuuu.py”,第11行,在 __导入(依赖项) 文件“C:\Users\hp\AppData\Local\Programs\Python\38\lib\site packa

这就是我在空闲状态下导入熊猫时遇到的错误(Python 3.8 64位)

导入熊猫 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 进口大熊猫 文件“C:\Users\hp\AppData\Local\Programs\Python38\lib\site packages\pandas\\uuuuuu init\uuuuuu.py”,第11行,在 __导入(依赖项) 文件“C:\Users\hp\AppData\Local\Programs\Python\38\lib\site packages\numpy\\uuuu init\uuuu.py”,第126行,在 从numpy.\uuuuu配置\uuuuu导入显示为显示\uu配置 文件“C:\Users\hp\AppData\Local\Programs\Python\38\lib\site packages\numpy\\uuuuu config\uuuuu.py”,第13行,在 添加dll目录(额外dll目录) AttributeError:模块“os”没有“添加dll目录”属性 >>>
>>> import pandas
Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    import pandas
  File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\__init__.py", line 11, in <module>
    __import__(dependency)
  File "C:\Users\hp\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\hp\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'
>>>