【问题标题】:Python 3 in Enthought CanopyEnthought Canopy 中的 Python 3
【发布时间】:2013-04-15 02:21:44
【问题描述】:

如何在 Canopy Enthought 中使用 Python 3?它在底部有选择 Python 3 的选项,但是当我们使用时这不会改变任何东西:

print(sys.version)
2.7.3 | 32-bit | (default, Mar 25 2013, 15:38:39) [MSC v.1500 32 bit (Intel)]

【问题讨论】:

  • 如果您的系统上还有 2.7,$ python3 myscript.py 是调用脚本的特定命令。
  • 这在 Enthought 中不起作用。问题是我无法在该组织的计算机上为 python 3.3 构建 numpy。 Canopy Enthought 有效,但我的脚本是用 3.3 编写的。
  • 我来这里也是为了问同样的问题。那么就没有办法在 Canopy 中使用 Python 3 了吗?
  • @Juanlu001 我放弃了...我想使用它的原因是因为我无法让 Python 3.3 在环境中工作。自从我在那里修好了它,它对我的​​事业来说已经过时了。
  • 我开始了赏金,因为对我来说,在 Canopy 中使用 Python 3 很重要。我想要一个答案,即使它是“不,你不能”。

标签: python-3.x enthought canopy


【解决方案1】:

Enthought 工程师回答说,目前无法在 Canopy 中或与 Canopy 一起使用 Python 3。他们正在考虑几种方法来支持它,但它们都不会在短期内到达。

编辑Enthought just announced Python 3 support for Canopy 2.0

【讨论】:

  • +1 提醒(和跑腿),这对许多人来说可能是一个关键问题。
【解决方案2】:

正如您在 https://www.enthought.com/products/canopy/package-index/ 上看到的那样,Canopy 使用的大多数(或某些) 软件包仅兼容 python-2.x 因此在这种情况下,如果您正在尝试在 Canopy 中使用过时的模块会导致 Canopy 不稳定,因此最终无法在 python 3.x 环境中工作

【讨论】:

    【解决方案3】:

    Canopy 现在不仅支持 Python 3,还支持在多个 Python 2.7 和 3.x 环境之间切换。

    来自知识库文章: “在 Canopy 2.1 中,联网用户(以及 Enthought 部署服务器的所有用户)可以创建、管理和在多个 Python 2.7 和 3.5 环境之间切换,不同的环境包含不同的包集。当你切换到特定的 Python 环境时在 Canopy 2.1 中,它在整个 Canopy 中使用——在包管理器、编辑器、Python 面板、调试器、数据导入工具、Jupyter Notebook 和 Canopy 命令提示符/终端中。”

    https://support.enthought.com/hc/en-us/articles/115002376586-Canopy-2-1-Managing-and-switching-between-Python-2-7-and-3-5-environments

    【讨论】:

    • “不仅”好像他们做得很好......我们在 5 年后谈论 ;)
    猜你喜欢
    • 2013-06-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-10
    相关资源
    最近更新 更多