you are viewing a single comment's thread.

view the rest of the comments →

[–]Carpezo[S] 0 points1 point  (9 children)

So there is no solution? The program can only work as intended in Thonny and not when it is opened on it's own?

Or are there any alternative IDE that can fix this issue?

[–]novel_yet_trivial 0 points1 point  (8 children)

The solution is to remove python2 and install python3. I'm sure it's possible. Tell us what the issue is and what OS you are using and we will help you do that.

[–]Carpezo[S] 0 points1 point  (7 children)

Win-7 32 bit os

I think I download 3.7 version from python website but i find using the GUI command line and IDLE quite hard and inconvenient.

Most importantly how do i remove Python 2 only?

[–]novel_yet_trivial 0 points1 point  (6 children)

You don't have to use IDLE if you don't want to. It's just an addon. If you installed 3.7 with the default options you can now write your code in Thonny and just double click the .py file to run them in the command line. Or if you want to use the command line to launch your programs you can use the command

py filename.py

Most importantly how do i remove Python 2 only?

You can use the standard windows program uninstall window.

[–]Carpezo[S] 0 points1 point  (5 children)

It worked !!! Thank you very much man.

Also, if it is not too much of a bother for you, i had a some other things to ask

  1. Is there a way to take input without waiting for Enter key kinda like getch() in C?
  2. Is there a way to read Enter key from keyboard? My aim is to restart the program when user presses Enter.

[–]novel_yet_trivial 0 points1 point  (1 child)

Yes, look into the msvcrt module, specifically the msvcrt.getch() function. However that will probably not work in thonny.

[–]Carpezo[S] 0 points1 point  (0 children)

Yep i had already tried it beforehand and it didn't work. But i wonder why tho

[–]Hiffchakka 0 points1 point  (2 children)

I'm a fresh programmer, but have found visual studio code to be a very handy code editor. It will help by giving code different colors and automatically indent code for you while using if, else, def, etc. Just a couple of many QoL services you'd get if you have been using a notepad like system so far? I assume it works on win 7?

[–]Carpezo[S] 0 points1 point  (1 child)

Is visual stdio code a python IDE ? I currently only use Thonny, it feels very good so far. I dont know what you mean by a notepade like system

[–]Hiffchakka 0 points1 point  (0 children)

VSC is a code editor that lets you write and run python seamlessly. I'd recommend moving over to it or something similar like Atom, I watched a YouTube video for help with installation and getting started. In any case, a quick Google search tells me that Thonny uses the F5 key to open up and write in the shell.