Python 3 in Enthought Canopy

2019-01-14 13:42发布

How to use Python 3 in Canopy Enthought? It has the option on the bottom to select Python 3, but this does not change anything when we use:

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

3条回答
smile是对你的礼貌
2楼-- · 2019-01-14 13:58

Canopy now supports not only Python 3 but switching between multiple Python 2.7 and 3.x environments.

From the knowledge base article: "In Canopy 2.1, internet-connected users (and all users of the Enthought Deployment Server) can create, manage, and switch between multiple Python 2.7 and 3.5 environments, with different environments containing different package sets. When you switch to a particular Python environment in Canopy 2.1, it is used throughout Canopy -- in the Package Manager, Editor, Python panel, Debugger, Data Import Tool, Jupyter Notebook, and Canopy Command Prompt / Terminal."

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

查看更多
贼婆χ
3楼-- · 2019-01-14 14:00

as you can see on https://www.enthought.com/products/canopy/package-index/ most(or some) packages which Canopy uses are only python-2.x compatible therefore in which case if you are trying to use a outdated module within Canopy this causes Canopy to in-stabilize and thus ends up not working in a python 3.x environment

查看更多
孤傲高冷的网名
4楼-- · 2019-01-14 14:05

An Enthought engineer answered that at present it is not possible to use Python 3 in or with Canopy. They are considering several ways to support it but none of them will arrive in the short term.

Edit: Enthought just announced Python 3 support for Canopy 2.0.

查看更多
登录 后发表回答