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)]
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)]
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.
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
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."
© 2022 - 2024 — McMap. All rights reserved.
$ python3 myscript.py
is a specific command to call the script with if you still have 2.7 on your system too. – Sergeant