See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 is installed - but cannot be started
#4
(04-07-2022, 06:56 PM)stevef link Wrote:To start an interactive python 3.8 session, open a terminal by pressing the ctrl alt and t keys together.  In the terminal type

Code:
python3.8

followed by return.  When done pressing ctrl+d should put you back to the terminal.

Just typing
Code:
python3
will do just as fine. As [member=8157]Steff260[/member] pointed out, you can install a python IDE(Integrated Development Environment) such as IDLE3, which is probably already installed. Also, read here for a few recommendations. https://realpython.com/python-ides-code-editors-guide/  By the way, you can use any text editor to write your python code, for instance, you can use nano:
Code:
nano my_python_code.py
this will open the nano editor in the terminal(yes, you have to launch the terminal and type that in it), then just start typing your code. Once you finished, make your my_python_code.py executable with
Code:
chmod +x my_python_code.py
and run from terminal
Code:
python3 my_python_code.py

[Image: ksnip-20220408-091651.png]

The output from the above code is:
Code:
$ python3  my_python_code.py
x is 1.

P.S: There's a very nice thread right here on the forum to get you started:
https://www.linuxliteos.com/forums/codin...th-python/

Also, that user bitsnpcs has some posts on python you might find helpful:
https://www.linuxliteos.com/forums/profi...osts;u=411

Hope this helps! Smile
Without each others help there ain't no hope for us Smile
Need a translation service? https://www.deepl.com/es/translator
Reply


Messages In This Thread
Re: Python3 is installed - but cannot be started - by Moltke - 04-08-2022, 01:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)