【发布时间】:2019-08-31 10:14:21
【问题描述】:
我的系统上安装了 pandas,但它无法工作并发送错误消息 ModuleNotFoundError:ipython 中没有名为“pandas”的模块。
当我尝试在 ipython 中导入 pandas 时收到错误消息:
In [1]: import pandas
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-38d4b0363d82> in <module>
----> 1 import pandas
ModuleNotFoundError: No module named 'pandas'
当我尝试在 jupyter notebook 中导入 pandas 时收到错误消息:
--------------------------------------------------------------------------
-
OSError Traceback (most recent call last)
<ipython-input-1-38d4b0363d82> in <module>
----> 1 import pandas
c:\users\user\appdata\local\programs\python\python37-32\lib\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("{0}: {1}".format(dependency, str(e)))
~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in <module>
138
139 # Allow distributors to run custom init code
--> 140 from . import _distributor_init
141
142 from . import core
~\AppData\Roaming\Python\Python37\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:
c:\users\user\appdata\local\programs\python\python37-32\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
我已经尝试卸载并重新安装熊猫,但没有成功
【问题讨论】:
-
“我已经尝试卸载并重新安装 pandas 但没有成功”是什么意思。您无法安装或收到已安装的消息?
-
它说要求已经满足:c:\\users...\lib\site-packages 中的熊猫
-
大声思考。文件的名称是什么?它有没有机会被命名为“熊猫”?如果是,请更改它。