简体   繁体   English

顶篷错误

[英]Enthought Canopy error

I'm not the most computer-literate person around, so please bear. 我不是最懂计算机的人,所以请耐心等待。 I'm using Windows 7(64bit) and have been using Enthought Canopy (v 1.3.0) with Python 3.3 for the past few months. 我使用的是Windows 7(64位),过去几个月一直在使用带有Python 3.3的Enthought Canopy(v 1.3.0)。 After Windows did a system update, suddenly I can't even open Canopy due to the following error: Windows完成系统更新后,突然由于以下错误,我什至无法打开Canopy:

Unexpected error ImportError: cannot import name umath 意外错误ImportError:无法导入名称umath

I installed Python 2.7.6,(removing 3.3) and am still getting the error. 我安装了Python 2.7.6,(删除了3.3),仍然出现错误。

I'm not sure if the Windows update has anything to do with the Canopy error message. 我不确定Windows更新是否与Canopy错误消息有关。 I'm not sure why Canopy is stressing over it, umath_test.pyd is located where all the other python files are: 我不确定Canopy为什么要强调它, umath_test.pyd位于所有其他python文件所在的位置:

Users\\myname\\Appdata\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.3.0.1715.win-x86_64\\Lib\\site-packages\\numpy\\core 用户\\我的名字\\ Appdata \\ Local \\ Enthought \\ Canopy \\ App \\ appdata \\ canopy-1.3.0.1715.win-x86_64 \\ Lib \\ site-packages \\ numpy \\ core

Any help would be greatly appreciated. 任何帮助将不胜感激。

I think there's some basic misunderstanding. 我认为有一些基本的误解。

1) You can't run Canopy with an arbitrary Python distribution (eg Python 3.3). 1)您不能使用任意Python发行版(例如Python 3.3)运行Canopy。 They can coexist, but separately, not interacting. 它们可以共存,但不能相互作用。 Canopy is, above all else, a Python distribution itself (2.7.6 at present). 最重要的是,Canopy本身就是Python发行版(目前为2.7.6)。 It also includes a simple IDE (editor, ipython shell, package manager, etc). 它还包括一个简单的IDE(编辑器,ipython shell,程序包管理器等)。

So when you install Canopy, you have installed Python 2.7.6. 因此,当您安装Canopy时,您已经安装了Python 2.7.6。

2) When you run Canopy User Python you are running not from the directory that you mentioned, but from: 2)运行Canopy User Python时, 不是从您提到的目录中运行, 而是从以下目录中运行:

Users\myname\Appdata\Local\Enthought\Canopy\User\

which itself inherits from the directory you mentioned. 它本身继承自您提到的目录。

To clean up whatever strangeness has happened during your installs and uninstalls of various pythons, I suggest that you delete these directories: 为了清理在安装和卸载各种python期间发生的所有奇怪情况,建议您删除以下目录:

Users\myname\Appdata\Local\Enthought\Canopy\User\
Users\myname\Appdata\Local\Enthought\Canopy\System\
Users\myname\Appdata\Roaming\Enthought\

Note that to see the AppData directory in Windows Explorer, you must set Explorer to show hidden files (Computer / Organize / Folder & Search Options / View / Advanced settings / Show hidden...) 请注意,要在Windows资源管理器中查看AppData目录,必须将资源管理器设置为显示隐藏文件(计算机/组织/文件夹和搜索选项/视图/高级设置/显示隐藏...)

Then restart Canopy from the Windows Start menu. 然后从Windows“开始”菜单重新启动Canopy。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM