Anaconda/Orange3产生OSError:[WinError 193]%1不是有效的Win32应用程序 [英] Anaconda/Orange3 produces OSError: [WinError 193] %1 is not a valid Win32 application

查看:616
本文介绍了Anaconda/Orange3产生OSError:[WinError 193]%1不是有效的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Anaconda的Windows 10下启动Orange 3时, 出现以下错误:

When I try to launch Orange 3 under Windows 10 in Anaconda I get the following error:

Traceback (most recent call last):
File "C:\Users\i7\Anaconda3\Scripts\orange-canvas-script.py", line 6, in 
from Orange.canvas.__main__ import main
File "C:\Users\i7\Anaconda3\lib\site-packages\Orange\__init__.py", line 5, in 
from Orange.data import _variable
File "C:\Users\i7\Anaconda3\lib\site-packages\Orange\data\__init__.py", line 4, in 
from .variable import *
File "C:\Users\i7\Anaconda3\lib\site-packages\Orange\data\variable.py", line 9, in 
import numpy as np
File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 142, in 
from . import core
File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 23, in 
WinDLL(os.path.abspath(filename))
File "C:\Users\i7\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

当我尝试从 Anaconda命令行

I get the same exact error mesage when I try to start it from the Anaconda command line with

(base) C:\Users\i7>python -m Orange.canvas

立即通过导航器(1.9.7)重新安装Anaconda和Orange 3(3.23.1), 和Windows 10版本1903年,我在Anaconda中所做的唯一更改 设置是要安装Orange 3.

Fresh install of Anaconda and Orange 3 (3.23.1) via Navigator (1.9.7) today, and Windows 10 Ver. 1903. The only thing I changed in the Anaconda setup is to install Orange 3.

有什么想法吗?根据搜索,我怀疑 64位与32位DLL不匹配(也许吗?)..但不确定如何 继续.再加上使用Anaconda之类的整个想法是( 无论如何还是我)以避免此类问题.

Any ideas what might be going on? Based on searches I'm suspecting a mismatch of 64 vs 32 bit DLL (maybe?) .. but not sure how to proceed. Plus the whole idea of using something like Anaconda is (to me anyway) to avoid these sort of problems.

我是Orange的新手,如果有更好的地方寻求帮助,请告诉我,我将在此发布.

I'm totally new to Orange, if there's a better place to ask for help, please let me know and I'll post this there.

推荐答案

如果其他人遇到此问题,这是解决问题的方法.问题出在以前的Python 3.7安装中,一些剩余目录在卸载过程中没有被删除.

In case anyone else comes across this, here's the solution to the problem. The issue was with some left-over directories from a previous installation of Python 3.7 that didn't get deleted during the uninstall process.

File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py",

一旦我删除了该目录(C:\Users\i7\AppData\Roaming\Python\Python37),它就可以正常工作了.感谢如何发表评论在Windows 10上使用python 3.7的anaconda软件包?通过@FlyingTeller

Once I deleted this directory (C:\Users\i7\AppData\Roaming\Python\Python37) it all worked. Credit goes to a comment in How to use anaconda packages for python 3.7 on windows 10? by @FlyingTeller

这篇关于Anaconda/Orange3产生OSError:[WinError 193]%1不是有效的Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆