11

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)]
astrojuanlu
  • 6,744
  • 8
  • 45
  • 105
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
  • `$ python3 myscript.py` is a specific command to call the script with if you still have 2.7 on your system too. –  Apr 22 '13 at 08:41
  • This does not work within Enthought. The issue is that I cannot build numpy for python 3.3 on this organization's computer. Canopy Enthought works, but my script was written in 3.3. – PascalVKooten Apr 22 '13 at 08:45
  • I came here to ask this very same question. There's no way to use Python 3 within Canopy then? – astrojuanlu Jun 18 '13 at 18:23
  • @Juanlu001 I gave up on it... The reason I wanted to use it was because I couldn't get Python 3.3 to work in the environment. Since I fixed it there, it became obsolete to my cause. – PascalVKooten Jun 18 '13 at 18:24
  • I started a bounty because for me it's important to use Python 3 within Canopy. I'd like to have an answer, even if it is "Nope, you can't". – astrojuanlu Jun 18 '13 at 18:26
  • @Juanlu001 Best bet would be to email them and ask. Perhaps if you're a subscribed/paying member there's an option. – PascalVKooten Jun 18 '13 at 18:28
  • Unfortunately I'm "only" an academic user, but yes, I will email them and see. EDIT: Already submitted ticket, waiting. – astrojuanlu Jun 18 '13 at 18:39
  • BTW I think the dropdown menu that you mention is just syntax highlight. – astrojuanlu Jun 18 '13 at 18:43
  • @Dualinity are you willing to accept that as the good answer? I don't think there is other option as of today :/ – astrojuanlu Jun 20 '13 at 06:53
  • @Dualinity Your question seems to have been answered, why not accept it? – BAR Sep 21 '13 at 21:06
  • @user417896 Forgotten about it. – PascalVKooten Sep 22 '13 at 07:24
  • I keep on getting upvotes for this. My personal recommendation: go for Anaconda. https://store.continuum.io/cshop/anaconda/ – astrojuanlu Mar 16 '15 at 09:17

3 Answers3

16

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.

astrojuanlu
  • 6,744
  • 8
  • 45
  • 105
  • 2
    +1 for the heads up (and the legwork), this could be a critical issue for many. – BAR Sep 21 '13 at 21:03
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

K DawG
  • 13,287
  • 9
  • 35
  • 66
0

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

EdTech
  • 226
  • 2
  • 7