问题标签 [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 投票
2 回答
11074 浏览

python - Enthought Canopy 中的 Python 文件 open() 失败并显示:“IOError No such file or directory”

我在 Enthought Canopy 下运行代码来打开和读取文件。它一直告诉我 IOError。

但我很确定文本文件名是正确的,它与 Python 文件位于同一目录中,并且该代码在 Python IDLE 等其他 IDE 中运行良好。不知道怎么了。有什么建议么?

失败了IOError: [Errno 2] No such file or directory: 'words.txt'

0 投票
1 回答
763 浏览

python - Enthought Canopy Encoding Error

I've been using python from time to time for some small projects and just started using it again after quite a while. I'm using Enthoughts Canopy IDE and get the following error:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: ordinal not in range(128)

I know that I have to define the encoding first and I do so in the 2nd Line:

" # -- coding: utf-8 -- "

but when I run the script within Canopy I keep getting the error whenever I enter one of the following letters: ä,ö,ü as user input When I start my script via console ("python XXX.py" or "ipython XXX.py") it works like a charm .

I'm just a little confused since I thought Canopy uses the ipython interpreter so there shouldn't be any differences whether I start it from console as ipython or via canopy

best regards

0 投票
1 回答
1773 浏览

python - Enthought Canopy Python 和 OpenCV

我已经安装了 Enthought Canopy Python 2.7.3 64 位,它有 OpenCV 2.4.2。当我import cv2收到以下错误时:

这篇文章建议解决方案是运行install_name_tool -change...,但我不知道传递它的选项,并且对动态库不够熟悉以理解手册页,所以我转向这里寻求帮助。

0 投票
1 回答
642 浏览

enthought - Canopy Express 上的 Python 3.x

安装 Canopy Express(具有 Python 2.7)后安装 Python 3.3 是否有任何问题?我最近安装了 Canopy 以利用它捆绑的软件包。我看到它使用了 2.7 版的 python,但我非常想使用最新和最好的 Python 版本,因为我是 python 新手并且正在学习它。但是我想确保安装 Python 3.3 不会破坏 Canopy 的任何功能。

0 投票
0 回答
799 浏览

pygtk - Enthought Canopy python install pygtk

我在 Red Hat 5.9 上使用最新的 enthought canopy 1.0.1 它安装在股票 python 2.4.3 之上

我有一些针对 pygtk 编写的应用程序,并希望将它们与 Enthought 版本一起使用。顺便说一句,pygtk 与本机 python 2.4.3 配合得很好。

Canopy 似乎没有通过 GUI 安装 pygtk。当我使用 easy_install 我得到这个错误:

错误信息 :

当我使用 ./configure 和 make 尝试“支持的方式”时

我收到此错误:

它正在找到正确的 python ,但我无法确定如何安装 enthought 标头。在 canopy 中有一个包 Debug Headers 0.1,它不会安装,因为 Paste 安装时出错。

谢谢你的帮助,

只是试图让 pygtk 与深思熟虑的 python 对抗。有什么建议么?

0 投票
1 回答
4449 浏览

python - 带有深思熟虑的树冠的 scipy

我正在评估 Enthought 包。我在 Ubuntu 中安装了 32 位机盖(从https://www.enthought.com/downloads/下载)。

经过测试,我看不到 scipy /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages

请帮帮我:如何安装 Python Canopy(包括 scipy、matplotlib 等)?我必须手动安装它们吗?我认为安装程序 shell 脚本会自动安装所有这些。我错过了什么吗?

0 投票
2 回答
6556 浏览

python - Enthought Canopy 1.1 给出错误 icui18n:无法打开共享对象文件:没有这样的文件或目录

我试图获得足够的顶篷并按照程序进行。但是,当我尝试运行时./canopy,它给出了这个错误:

无法加载库 icui18n “无法加载库 icui18n:(icui18n:无法打开共享对象文件:没有这样的文件或目录)”。

我不能 sudo 因为我使用的是大学的超级计算帐户,没有权限这样做。有什么建议吗?

0 投票
5 回答
14604 浏览

python - 将软件包安装到 Canopy

我对编码、编程、Python 和一般的计算机都很陌生,所以我需要一些关于 Canopy 的帮助。我在将任何软件包安装到 Canopy 时一直遇到麻烦;有些东西在内部包管理器中,但如果不是,那真的很混乱。我想我会列出一个特定的安装。

我正在尝试将“pywcs”(下面提供的链接)安装到我的 Win7 64 位机器上。如果有帮助的话,我有 Cygwin。我不知道该怎么做;我在网上找到的东西很混乱,而且 Cygwin easy_install (filename) 似乎从来没有工作过。有什么分步解决方案吗?

0 投票
1 回答
1368 浏览

python - 天篷版 MySQLdb

我正在运行 Enthought Canopy,python 版本 2.7.3,并且在使用模块 MySQLdb 时遇到了困难。我从 Canopy 包管理器安装了 MySQL_Python 1.2.3,但是当我运行我的代码时,我得到了

我的代码的第 2 行简单地说

我也试过

并得到

有没有人有任何建议让 Enthought Canopy 与 MySQLdb 一起工作?

编辑:不确定是否重要,但我正在运行 Ubuntu 12.04。

第二次编辑:我想出了如何添加到模块搜索路径,所以在我现在拥有的任何其他内容之前,在我的代码开头:

一旦我这样做,它就会起作用。有没有人有一个更永久的解决方案,我不必每次都实施?

0 投票
1 回答
1322 浏览

python - 在 Canopy venv 中安装软件包

我正在研究使用Canopy Express作为 IDE。我的理解是,它使用venvPython 3 的反向移植来管理用户生成的虚拟环境,此外它本身就是一个虚拟环境。我只是想验证在我在 Canopy 中创建的任何虚拟环境中,我将能够使用easy_install/安装 Express 发行版中未包含的项目特定包,如此pip所述。最后一个链接没有明确说明这种包管理在用户创建的虚拟环境中工作,因此我不确定。

简而言之,我想要的是(假设我所有的项目都是基于 2.7 的)安装 Canopy Express 并将其用作我的默认 Python。然后对于需要 Express 不包含的包的各种项目,我可以创建单独的虚拟环境并根据需要安装这些包。

如果我不能这样做,我看到的另一种选择是根据virtualenv需要在环境中安装 Canopy Express,然后使用这些环境pip安装额外的包。

有什么想法吗?