我是python初学者,我使用过jupyter笔记本。到今天为止一切都很好,当我今天早上像往常一样尝试导入大熊猫时,它报告了这样的错误,例如“ [[WinError 193]%1不是有效的Win32应用程序”。
我调查了一些以前的问题的答案,但对我而言它们没有意义。我的anaconda是64位的,熊猫也是64位的。为什么会出错?我该怎么办?
import pandas as pd
我收到错误消息:
--------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-9-2f05c4dd09d8> in <module>
----> 1 import pandas as pd
~\AppData\Roaming\Python\Python37\site-packages\pandas\__init__.py in <module>
11 for dependency in hard_dependencies:
12 try:
---> 13 __import__(dependency)
14 except ImportError as e:
15 missing_dependencies.append(dependency)
~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in <module>
140 from . import _distributor_init
141
--> 142 from . import core
143 from .core import *
144 from . import compat
~\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py in <module>
21 # NOTE: would it change behavior to load ALL
22 # DLLs at this path vs. the name restriction?
---> 23 WinDLL(os.path.abspath(filename))
24 DLL_filenames.append(filename)
25 if len(DLL_filenames) > 1:
~\Downloads\Anaconda\anaconda\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
354
355 if handle is None:
--> 356 self._handle = _dlopen(self._name, mode)
357 else:
358 self._handle = handle
OSError: [WinError 193] %1 is not a valid Win32 application