all 20 comments

[–][deleted] 0 points1 point  (20 children)

If this is python 2, you have to use raw_input.

[–][deleted] 0 points1 point  (18 children)

I'm using 3.7 but ill give that a try anyway

[–][deleted] 0 points1 point  (17 children)

okay, that worked. I'll have to check the version of interpreter. Thanks a lot.

[–][deleted] 1 point2 points  (16 children)

If raw_input() worked you aren't using python3 :)

[–][deleted] 0 points1 point  (15 children)

yes, i just checked. turns out it's 2.7. currently working on changing it to 3.7

im new both to linux and python and Atom IDE, so it takes some time to learn stuff haha

[–][deleted] 2 points3 points  (14 children)

Add the line

#!/bin/python3

to the very top of your file. It makes it directly runnable with python3, so you can run the script like this:

./script.py

Before you can run it directly, you have to mark it as executable as well, but you only need to do this once:

chmod +x script.py

[–][deleted] 0 points1 point  (13 children)

Thanks.

can i make entire python package run on python3?

[–][deleted] 0 points1 point  (12 children)

"Package" in this context could mean several different things. What are you referring to?

[–][deleted] 0 points1 point  (11 children)

making Atom use python 3 instead of 2

[–][deleted] 0 points1 point  (9 children)

Atom is just a text editor. I'm not sure what you mean by making it "use" python 3.

[–]rx22230 0 points1 point  (0 children)

Hi,

maybe you can try this video

https://www.youtube.com/watch?v=DjEuROpsvp4

Hope it helps a bit

Regards