Python Shell / Idle

Dear L&G, I just downloaded Python 3.14 (64 bit), installed it, and opened the console.

However, I cannot activate the shell to open a new file, name it, and save it for further development. There is no shell icon or command line in the top left corner.

I don’t understand what I did wrong.

Any suggestions/help would be greatly appreciated.

Thank you in advance

Can you try re-installing it but with Administrator Priveleges.

Dear Riccardo,

Under Windoze I would open the program ‘Idle’. Then under the File menu open ‘New’. Inside the window that opens up one can type in the program and save it. Also in the menu there is one titled ‘Run’ with which one can run the program.

Under Linux, there is also Idle. But I also installed a thing called ‘Spyder3’ - which is an ‘Integrated Development Environment’. Spyder has a section where I type in the program, and another section titled ‘console’ where, if I use the ‘Run’ menu (Or the big green arrow) the results of the program are displayed.

Good Luck.

When you run python, or py (on Windows), then that’s just the interpreter. It expects to read a program, or if there wasn’t one to run, it will prompt you (>>> ) to type something. It is traditional to try 6*7 first.

It sounds like you are expecting it to let you edit-and-run-and-debug, but that’s a separate thing. As @MadPoet indicates, you need idle, which comes with Python (not just on Linux), or another IDE. (Or you can just use your favourite editor to make a file and run it with the python command.)

You may be able to launch idle with that command at the prompt, or py -m idlelib should do it.

Thank you for your kind and timely message, Jeff.
It has been very helpful in improving my understanding of the Python development environment.

I am trying to learn Python after not writing code for a long time (I used to code in Fortran 5 and AS an IBM property language).

I will keep your suggestion in mind and thank you again.
Have a nice day.

Kind regards,
Riccardo

1 Like