python调用动态库出现error193_python - Python错误:OSError:[WinError 193]%1不是有效的Win32应用程序 - 堆栈内存溢出...

在更新Anaconda Navigator中的numpy和matplotlib等软件包后,代码遇到问题,导入numpy时抛出OSError 193异常。错误发生在尝试加载numpy的WinDLL时,提示%1不是有效的Win32应用程序。
摘要由CSDN通过智能技术生成

使用Anaconda Navigator更新某些软件包(numpy,matplotlib等)和Spyder之后; 我使用这些软件包的代码不再起作用,并且在导入时出现错误。

期待更好的理解和解决的建议...

在使用IPython控制台并在下面输入时:

In [1]: import numpy

这给出以下输出:

---------------------------------------------------------------------------

OSError Traceback (most recent call last)

in

----> 1 import numpy

~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in

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

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:

E:\Programs\Anaconda\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)

362

363 if handle is None:

--> 364 self._handle = _dlopen(self._name, mode)

365 else:

366 self._handle = handle

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值