问题标签 [canopy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1036 浏览

python - 列出 enthought 的 python 包的 conopy 安装中的所有模块?

我已经安装了许多软件包附带的 canopy express 以避免相互依赖。python 在提示符下工作正常。我可以执行代码,一切都很好。但是该链接引用了许多包都包含在树冠快递中,例如 pytest。但是当我尝试导入 pytest 时,我得到importError. 即使help("modules")列出所有模块也不起作用。任何使用 Canopy express 的人都可以评论这些包(pytest、curl、distribute 等)是否存在。

0 投票
1 回答
236 浏览

python-2.7 - 使用 Enthought Canopy 时出现 configure_traits 问题

我正在关注教程“使用 TraitsUI http://code.enthought.com/projects/traits/docs/html/tutorials/traits_ui_scientific_app.html为科学编程编写图形应用程序 并测试了以下代码片段:

如果我在命令行运行它,它会像宣传的那样工作。弹出一个图形用户界面。您调整参数,当您单击“确定”时,它会返回修改后的值。但是,当我通过单击运行按钮从 Canopy 编辑器中运行相同的代码时,会立即打印默认参数;然后弹出窗口。然后,当您在 GUI 中调整参数并单击“确定”时,GUI 会退出,但不会打印新的参数值。

就好像 camera.capture() 在 camera.configure_traits 之前运行一样。

0 投票
3 回答
12200 浏览

matplotlib - Enthought Canopy 中的 Matplotlib 字体

我在Canopy里面使用matplotlib库,具体函数是xkcd()。此函数使用特定字体来绘制图表。字体是 Comic Sans MS,如果不存在,应该下载。

我使用下面的小脚本,它检查字体的存在/不存在。如果不存在,它会下载它。

问题是我仍然没有得到正确的字体来显示。如果字体缓存出现问题,我会执行以下操作:

获得以下内容:

我错过了什么?

0 投票
2 回答
674 浏览

python - 打开mac时Enthought Canopy崩溃

所以昨天我更新到 Enthought 1.1 版,现在它拒绝打开。我已经重新启动了我的计算机,并重新安装了 enthought canopy。我不断收到以下错误

我不知道这里发生了什么。我已将错误报告发送给 enthought,但有人有什么想法吗?

0 投票
1 回答
243 浏览

ipython - 我无法在 Enthought Canopy 中更新我的 Ipython 和示例版本

我尝试通过包管理器进行更新。但它显示 HTTP 错误 404。

我试着提一下,因为它是在 Ipython 的网站上给出的。然后我收到以下错误:

KeyError:u'HTTP 错误 404:未找到: https ://api.enthought.com/eggs/win-32/ipython-1.1.0-3.egg '

我应该怎么办

---------------在 JONATHANS 回答后编辑------------------------------- ------------

对于 Examples-7.3-1.egg 和 libxml2-2.7.8-4.egg 我也遇到同样的错误

其他一些软件包也很有可能出错。请告诉我。

0 投票
0 回答
448 浏览

python - 找不到 Canopy Python 导入 PIL libjpeg

我面临 Canopy python 和 Python Image Library 的问题。

我想使用 _imaging 库,但导入会产生 libjpeg not found 错误

我正在开发 Fedora 19,并确保(根据 yum)应该提供 libjpeg:

有什么建议吗?谢谢!

0 投票
2 回答
508 浏览

osx-mavericks - 无法在 OSX Mavericks 的 Enthought Canopy 中安装 statsmodels

我正在使用包管理器尝试在带有 Mavericks 的 MacBook 上的 Canopy 中安装 statsmodels。

我收到此错误: 操作:安装 statsmodels-0.5.0-2.egg 包管理器遇到错误 HTTP 错误 404:未找到:https://api.enthought.com/eggs/osx-64/patsy-0.2 。 0-1.鸡蛋

所以我也尝试通过包管理器安装 patsy 并得到相同的消息: 操作:安装 patsy-0.2.0-1.egg 包管理器遇到错误 HTTP 错误 404:未找到:https ://api.enthought.com /eggs/osx-64/patsy-0.2.0-1.egg

0 投票
1 回答
168 浏览

enthought - _odepack.pyd 是安装中的恶意软件吗?

我两天前安装了 enthought canopy 32 位(用于使用 python 及其包)。当我运行我的防病毒软件时,它发现文件:_odepack.pyd

是一种恶意软件,特别是 GEN:Variant.kazy.114716。它在里面 ...users\appdata\local\enthought\canopy32\user\lib\site-packages\scipy\integrate 它是什么?它是安装内部的恶意软件吗?

0 投票
0 回答
317 浏览

python - Enthought Canopy No JSON object could be decoded

I can not open all my IPython notebook files in Enthought Canopy. I just used these files a couple of hours ago but then suddenly, an error occurs when I try to open the files.

The error says:

Unable to open file 'C:\Users\user1\Python...
No JSON object could be decoded"

Steps to reproduce the error:

  1. Open Enthought Canopy
  2. Click Editor
  3. Drag and drop IPYNB file to tab.
  4. Error always appear.

Please let me know how to fix this error.

Actions attempted to solve the problem:

  1. Restart Enthought Canopy - Does not fix the problem
  2. Restart PC - Does not fix the problem
  3. Uninstall and Install newly downloaded installer - Does not fix the problem
  4. Open the file on other computer - No Problem

Characteristics of my computer

  1. Windows 7
  2. 64 bit
0 投票
2 回答
756 浏览

python - 使用 enaml 时如何获取关键事件?

我一直在使用 enaml(目前 Canopy 提供的 0.6.8)并成功创建了一些非常有用的实用程序应用程序。但是,我想拦截键盘事件以启用一些快速键盘快捷键,而不是在 UI 中重复单击按钮。

我该如何处理?我知道这将是特定于工具包(qt4)的,但无法真正弄清楚从哪里开始。我在 qt 中阅读了一些关于事件过滤器的内容,这似乎是我想要的,但我不明白将 QApplication 等与 enaml 相关联的机制