简体   繁体   English

如何修复“OSError: [WinError 193] %1 不是有效的 Win32 应用程序”

[英]How to fix"OSError: [WinError 193] %1 is not a valid Win32 application"

I'm trying to follow a tutorial on how to get started with machine learning and had to install the Scipy script, I installed it using Pip through command prompt.我正在尝试学习如何开始机器学习的教程,并且必须安装 Scipy 脚本,我通过命令提示符使用 Pip 安装了它。 I kept getting this error, how would I add these scripts to PATH.我一直收到这个错误,我如何将这些脚本添加到 PATH。

# Check the versions of libraries

# Python version

# scipy
import scipy
print('scipy: {}'.format(scipy.__version__))
# numpy
import numpy
print('numpy: {}'.format(numpy.__version__))
# matplotlib
import matplotlib
print('matplotlib: {}'.format(matplotlib.__version__))
# pandas
import pandas
print('pandas: {}'.format(pandas.__version__))
# scikit-learn
import sklearn
print('sklearn: {}'.format(sklearn.__version__))

Below is the error:下面是错误:

  File "c:\Users\chris\Desktop\Computer Science\ML_Test.py", line 6, in <module>
    import scipy
  File "C:\Users\chris\AppData\Roaming\Python\Python37\site-packages\scipy\__init__.py", line 62, in <module>
    from numpy import show_config as show_numpy_config
  File "C:\Users\chris\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 140, in <module>
    from . import _distributor_init
  File "C:\Users\chris\AppData\Roaming\Python\Python37\site-packages\numpy\_distributor_init.py", line 26, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\chris\AppData\Local\Programs\Python\Python37-32\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

I have a similar issue.我有一个类似的问题。 From some other posts, is seems this is linked to a dll pb.从其他一些帖子来看,这似乎与 dll pb 相关联。 However, I have no idea which dll is involved, and how to replace it with the appropriate one.但是,我不知道涉及哪个 dll,以及如何用适当的 dll 替换它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 Jupyter Notebook pandas 错误(OSError: [WinError 193] %1 不是有效的 Win32 应用程序) - How to fix Jupyter Notebook pandas error (OSError: [WinError 193] %1 is not a valid Win32 application) OSError: [WinError 193] %1 不是 Python 中的有效 Win32 应用程序 - OSError: [WinError 193] %1 is not a valid Win32 application in python OSError: [WinError 193] %1 不是有效的 Win32 应用程序 (Pandas) - OSError: [WinError 193] %1 is not a valid Win32 application (Pandas) OSError: [WinError 193] %1 不是有效的 Win32 应用程序 - python - OSError: [WinError 193] %1 is not a valid Win32 application - python OSError: [WinError 193] %1 不是有效的 Win32 应用程序 - OSError: [WinError 193] %1 is not a valid Win32 application OSError: [WinError 193] %1 不是有效的 Win32 应用程序 (LibTiff) - OSError: [WinError 193] %1 is not a valid Win32 application (LibTiff) Azure - numpy - OSError:[WinError 193]%1不是有效的Win32应用程序 - Azure - numpy - OSError: [WinError 193] %1 is not a valid Win32 application 无法解决OSError:[WinError 193]%1不是有效的Win32应用程序 - Unable to resolve OSError: [WinError 193] %1 is not a valid Win32 application Python 错误:OSError: [WinError 193] %1 不是有效的 Win32 应用程序 - Python error: OSError: [WinError 193] %1 is not a valid Win32 application OSError: [WinError 193] %1 不是有效的 Win32 应用程序 Python - OSError: [WinError 193] %1 is not a valid Win32 application Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM