You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Python3 is installed - but cannot be started

Author (Read 4334 times)

0 Members and 1 Guest are viewing this topic.

Re: Python3 is installed - but cannot be started
« Reply #4 on: April 08, 2022, 09:26:14 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
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: [Select]
python3.8
followed by return.  When done pressing ctrl+d should put you back to the terminal.

Just typing
Code: [Select]
python3 will do just as fine. As @Steff260 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: [Select]
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: [Select]
chmod +x my_python_code.py and run from terminal
Code: [Select]
python3 my_python_code.py


The output from the above code is:
Code: [Select]
$ 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/coding/beginning-with-python/

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

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

Re: Python3 is installed - but cannot be started
« Reply #3 on: April 07, 2022, 06:05:12 PM »
 

robert2019

  • New to Forums
  • *
  • 6
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Dual core AMD C-70 APU with Radeon HD Graphics 1000 MHz

  • MEMORY: 4Gb

  • VIDEO CARD: Advanced Micro Devices [AMD/ATI] Wrestler [Radeon HD 7290]

  • Kernel: 5.x
Hi Steff260,

You might wish to use the Python GUI with starting IDLE (interactive development environment). Most probably you had it installed already; if not do:

Code: [Select]
sudo apt-get install idle3
Then;
Code: [Select]
sudo apt-get install python3-pip
Enter your password when being asked for it and hit Enter. Once done simply go to Menu > type IDLE in the application finder field and when you see it listed click on it to run.
 

Re: Python3 is installed - but cannot be started
« Reply #2 on: April 07, 2022, 02:56:23 PM »
 

stevef

  • Global Moderator
  • Gold Level Poster
  • *****
  • 814
    Posts
  • Reputation: 147
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core i5-4460

  • MEMORY: 16Gb

  • Kernel: 5.x
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: [Select]
python3.8
followed by return.  When done pressing ctrl+d should put you back to the terminal.
clueless
 

Python3 is installed - but cannot be started
« Reply #1 on: April 07, 2022, 02:19:51 PM »
 

Steff260

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hello,

I cannot start Python3. The program is not displayed in the main menu. But it is installed for sure.

Under /usr/share/applications/ I can find Python among other programs. If I then double click on the Python icon nothing happens - in contrast to other programs displayed there.

Unfortunately I had these problems also a long time ago with the program R. Also here I had found no menu entry. However, a folder was created here and I can - if I click through the folders to the "bin" file, then start the program and it runs.

Does anyone have any idea how I can get Python running?
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section