安装了 anaconda,当我运行 Pandas 时它不起作用。有没有办法解决这个问题?我是否需要卸载并重新安装才能使其工作?

时间:2020-12-31 03:39:08

标签: python-3.x pandas anaconda


OSError                                   Traceback (most recent call last)
<ipython-input-2-7dd3504c366f> in <module>
----> 1 import pandas as pd

~\AppData\Roaming\Python\Python38\site-packages\pandas\__init__.py in <module>
      9 for dependency in hard_dependencies:
     10     try:
---> 11         __import__(dependency)
     12     except ImportError as e:
     13         missing_dependencies.append(f"{dependency}: {e}")

~\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py in <module>
    136 
    137     # Allow distributors to run custom init code
--> 138     from . import _distributor_init
    139 
    140     from . import core

~\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py in <module>
     24                 # NOTE: would it change behavior to load ALL
     25                 # DLLs at this path vs. the name restriction?
---> 26                 WinDLL(os.path.abspath(filename))
     27                 DLL_filenames.append(filename)
     28         if len(DLL_filenames) > 1:

~\Anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, 
winmode)
    379 
    380         if handle is None:
--> 381             self._handle = _dlopen(self._name, mode)
    382         else:
    383             self._handle = handle

OSError: [WinError 193] %1 is not a valid Win32 application

我尝试“将熊猫导入为 pd”,这是 jupyter 笔记本中的输出。回溯(最近一次通话)是什么意思?还有为什么有箭头指向特定的行?

0 个答案:

没有答案