Python Forum
Same codes show different output ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Same codes show different output ?
#11
So you're saying that using PyCharm in Python 2.x version mode will try to interpret your Python 3.x code differently than using PyCharm in 3.x mode. Just because SuperSymmetry has Python 3 installed and is writing using that syntax, PyCharm still thinks Python 2 is installed, and that's why it's getting different output?
Reply
#12
Pycharm will allow you to use multiple interpreters provided you have the versions installed. So if you have both Python 2.7 and Python 3.6 installed, you would set the one you use most often in the default settings. To use the other version, you would change the interpreter in the regular settings and create a new file using that version. If you only have one version installed, that will be the only option you have. If you have, say, Python 3.6 installed, you could write 2.7 code but you will end up with a lot of errors.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#13
(Jul-15-2017, 10:30 PM)tozqo Wrote: So you're saying that using PyCharm in Python 2.x version mode will try to interpret your Python 3.x code differently than using PyCharm in 3.x mode. Just because SuperSymmetry has Python 3 installed and is writing using that syntax, PyCharm still thinks Python 2 is installed, and that's why it's getting different output?

I have ensured it is directed to the python 3 path.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIL Image im.show() no show! Pedroski55 2 928 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  PIL Image im.show() no show! Pedroski55 6 4,740 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  Jupiter Notebook does not show output line Renym 3 2,609 Apr-26-2020, 11:21 AM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020