pandas - 需要解决方案:OSError: [WinError 193] %1 不是有效的 Win32 应用程序
问题描述
将熊猫导入为 pd
----> 1 import pandas as pd 中的 OSError Traceback(最近一次调用最后一次)
~\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
解决方案
我得到了答案:
您只需要从中删除Python
文件夹AppData
。
它对我有用。
推荐阅读
- java - 我是否愿意为不同的文件导入库?
- javascript - 如何在Javascript中制作停止按钮来停止一切
- docker - 安装 puppeteer 和 npm 文件 | 码头工人形象
- android - MPAndroidChart Xaxis。不为每个点调用 ValueFormatter
- python - vim (neovim) Python feedkeys 中的转义序列
- r - 如何生成填写特定区域的国家地图
- mysql - MySql中的数据库设计用于用户的股票市场表现
- python - 如何将字符串传递给类并在类中评估格式化变量
- groff - 不对称 Groff 输出
- xcode - Xcode SwiftUI UITableView 分隔颜色表单“部分”文本