You are not logged in.

#1 2024-02-11 17:01

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Latest Python on Q4OS Software Centre

Good day!
Is it possible to add latest Python version to the Q4OS Software Centre? The existing Python version is one year old, so it is very outdated. A LOT of improvements and bug fixes were made since this version. I am asking this, because I want to learn Python, and I need a latest version.
Yes, I have tried to compile it and install from source, but I had errors, and installation was unsuccessful.


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#2 2024-02-12 21:26

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Re: Latest Python on Q4OS Software Centre

I have to Withdraw this request.
I have read, that installing different version of Python, than the preinstalled version is very dangerous and can damage your system.
If you have made a full backup of your system (topic, how to do it), you can use this tutorial to install Python on Linux: https://realpython.com/installing-pytho … n-on-linux
But, it is recommended to install pyenv on Linux to be able to use multiple versions of Python: https://realpython.com/intro-to-pyenv/

Last edited by Rademes (2024-02-12 21:28)


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#3 2024-02-13 12:52

Testyyy
Member
Registered: 2023-12-11
Posts: 21

Re: Latest Python on Q4OS Software Centre

Hello 
I use Python a lot so I'm used to having to manage the different versions on Linux. 
What is dangerous is not so much installing a new python version, but replacing the system's python version with a new one. 
You must therefore simply install the new one in a directory separate from the basic version.  To use it from a terminal, simply temporarily modify the PYTHONPATH variable. 
I agree that compiling python from source is not great, I also had a lot of problems. 
Pyenv works great, just one command and it does the installation by itself! 
I strongly recommend using a virtual environment to install packages with pip (in fact I think we have no choice now).  Personally I use the IDE Spyder, it's specific to Python and it works very well.
Good luck with your learning!

Offline

#4 2024-02-13 20:17

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Re: Latest Python on Q4OS Software Centre

Thank you Testyy, for your advises, but since I am at very beginning, I have decided to use an Online Python Compiler: https://www.programiz.com/
This will allow me not to touch my computer at all. I do not want to break my system.
Online compiler: https://www.programiz.com/python-progra … -compiler/
Or this one: https://onecompiler.com/

Testyy, since you are Python programmer, can you please check these online compilers? Can they be used for Python learning?

Last edited by Rademes (2024-02-13 21:30)


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#5 2024-02-15 07:48

Testyyy
Member
Registered: 2023-12-11
Posts: 21

Re: Latest Python on Q4OS Software Centre

Yes I understand that you don't want to break your system, to tell you the truth I broke mine several times wink .
That said, pyenv installs everything in the /home directory, so normally it doesn't touch the system at all.
I'm not really used to using online compilers, but it's true that it's very practical, you can access it from anywhere, even from a phone.  The only problem is that the functionalities are limited compared to a local installation.  For example, you cannot add other python libraries than those present in the compiler.  So I would say that it all depends on what you want to do on python!  But for learning it's perfect.
I think onecompiler is the best online compiler of the three, because it has the most libraries.  (Like matplotlib, pandas, numpy, scipy...).
I'm glad I could help you, don't hesitate if you have any other questions!

Last edited by Testyyy (2024-02-15 07:49)

Offline

Board footer

Powered by FluxBB