Python Forum

Full Version: Need to upgrade 3.4.8 to 3.7.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Need to move our python project from 3.4 to 7.2 version. Can anyone suggest below:

1. Is Python 3.7.2 compatible with RHEL 7.5
2. Installation steps of Python 3.7.2 on RHEL.
3. Can Python 3.4.8 co-exist with Python 3.7.2? Are there any shared libraries or files?
4. If so, how can we make Python 3.7.2 the default version.
5. If not, can python 3.4.8 be completely removed?
6. Can we re-install Python 3.4.8 after removal? If yes, then how?
7. Any known issues with packages / libraries / drivers if we move from Python 3.4.8 to Python 3.7.2.

Thanks in Advance .. Smile Smile Smile
Need to move our python project from 3.4.8 to 3.7.2 version. Can anyone suggest below:

1. Is Python 3.7.2 compatible with RHEL 7.5
2. Installation steps of Python 3.7.2 on RHEL.
3. Can Python 3.4.8 co-exist with Python 3.7.2? Are there any shared libraries or files?
4. If so, how can we make Python 3.7.2 the default version.
5. If not, can python 3.4.8 be completely removed?
6. Can we re-install Python 3.4.8 after removal? If yes, then how?
7. Any known issues with packages / libraries / drivers if we move from Python 3.4.8 to Python 3.7.2.

Thanks in Advance .. Smile Smile Smile
Look at pyenv, it can help to solve all these questions.
(Mar-06-2019, 12:38 PM)dipankargp Wrote: [ -> ]1. Is Python 3.7.2 compatible with RHEL 7.5
Yes.
(Mar-06-2019, 12:38 PM)dipankargp Wrote: [ -> ]2. Installation steps of Python 3.7.2 on RHEL.
I would recommend pyenv Simple Python Version Management
Here a article for Redhat GNU/Linux based System.
(Mar-06-2019, 12:38 PM)dipankargp Wrote: [ -> ]3. Can Python 3.4.8 co-exist with Python 3.7.2? Are there any shared libraries or files?
Yes pyenv makes this simple,let say Python 3.4.8 is default Python 3 version.
pyenv install 3.7.2 and set it Global pyenv global 3.7.2.
At this point is Python 3.7.2 your Global(system wide installation).
Going back to Python 3.4.8 pyenv local system and of course back again pyenv global 3.7.2.
Quote:5. If not, can python 3.4.8 be completely removed?
I would just leave it alone.
Quote:7. Any known issues with packages / libraries / drivers if we move from Python 3.4.8 to Python 3.7.2.
No all i have tested work fine on 3.7.2.