[英]Python (Spyder) - Error importing numpy, pandas, etc: OSError: [WinError 193] %1 is not a valid Win32 application
I am complete python noob - and I've been following some tutorials until I reached a problem that seems to be above my current knowledge.我是完整的 python 菜鸟 - 我一直在学习一些教程,直到遇到一个似乎超出我目前知识范围的问题。
I'm using 64bit Anaconda.我正在使用 64 位 Anaconda。 When I try to import a library, like:
当我尝试导入库时,例如:
import numpy
I get the following error:我收到以下错误:
OSError: [WinError 193] %1 is not a valid Win32 application
Alongside the following traceback:除了以下回溯:
runfile('C:/Users/default.LAPTOP-UGHKEJ3G/Desktop/untitled0.py', wdir='C:/Users/default.LAPTOP-UGHKEJ3G/Desktop')
Traceback (most recent call last):
File "<ipython-input-29-3ecc1d2f2c89>", line 1, in <module>
runfile('C:/Users/default.LAPTOP-UGHKEJ3G/Desktop/untitled0.py', wdir='C:/Users/default.LAPTOP-UGHKEJ3G/Desktop')
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/default.LAPTOP-UGHKEJ3G/Desktop/untitled0.py", line 8, in <module>
import numpy
File "C:\Users\default.LAPTOP-UGHKEJ3G\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 142, in <module>
from . import core
File "C:\Users\default.LAPTOP-UGHKEJ3G\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 23, in <module>
WinDLL(os.path.abspath(filename))
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
I'm not really sure what to do.我真的不知道该怎么做。 I've checked all the other threads on it, uninstalled any python versions, uninstalled and re-installed Anaconda, uninstalled and re-installed numpy.
我检查了它的所有其他线程,卸载了任何 python 版本,卸载并重新安装了 Anaconda,卸载并重新安装了 numpy。 I'm all out of ideas!
我完全没有想法!
Any suggestions would be welcome!欢迎大家提出意见!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.