Installing python3.8 alongside python3.6 Centos
Python 3.8 not possible to install on Linux? Why?
Python 3 is the default Python implementation in RHEL 8
Red Hat Enterprise Linux 8 is distributed with
Python 3.6. The package is not installed by default. To installPython 3.6, use theyum install python3command.
Python 2.7is available in thepython2package. However,Python 2will have a shorter life cycle and its aim is to facilitate smoother transition toPython 3for customers.Neither the default
pythonpackage nor the unversioned/usr/bin/pythonexecutable is distributed with RHEL 8. Customers are advised to usepython3orpython2directly. Alternatively, administrators can configure the unversionedpythoncommand using thealternativescommand.For details, see Using Python 3 in Red Hat Enterprise Linux 8.
(BZ#1580387)
More on reddit.com
Videos
I have a centos7 server which already uses python3.6, but on one user account, I want to be using python3.8 in a virtual environment. Is it safe to just install python 3.8 onto the server and just use that for the virtual environment or is this going to cause problems for my python3.6 installation? I've found info about this for Ubuntu, where you can use alternative installs, but nothing for centos.
If I have to rebuild the server with python 3.8 I will, but I really would rather not if it's safe to have the two together.
Monday, October 14, 2019 Python 3.8.0 is now available
I am attempting to install the latest Python 3.8.0 on CentOS 8, but it does not seem possible.
I search in Software Collections, and find nothing. The latest release there is Python 3.6 (released nearly three years ago - no updates in three years!!! - I'm abandoning Software Collections).
Python 3.6 was released on December 23rd, 2016, nearly three years ago.
I check in the RHEL / CentOS repos, and same darn thing, no python update in nearly three years.
#dnf list --available | grep python3
Nothing there for Python 3.8.0 or even Python 3.7.x for that matter. I'm not sure what the deal is with Python enthusiasts or RHEL/CentOS users that someone somewhere has not simply updated some repo somewhere, I can try and get involved.
Use the source:
https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
I download the Python 3.8.0 source from the link above, look at the dependencies and try to get those installed first, but no luck. The dependencies for 3.8.0 cannot be found or installed.
Dependencies attempted install via:
#!/bin/bash #dnf install dnf-plugins-core # install this to use 'dnf builddep' #dnf builddep python3 #dnf update -y
Results:
No matching package to install: 'libnsl2-devel' No matching package to install: 'bluez-libs-devel' No matching package to install: 'tix-devel' Not all dependencies satisfied Error: Some packages could not be found.
When I search for these, I find nothing in the repos:
#dnf list --available | grep libnsl2-devel #dnf list --available | grep bluez-libs-devel #dnf list --available | grep tix-devel
Nothing is returned for any of these dependencies.
What has to be done to get these dependencies in a repo somewhere so they can be installed so I can build the source code?
Better yet, how do I get Python 3.8.0 in some freaking repo some where, it's been three years since any RHEL or CentOS repo has been updated.
It's nearly 2020 already, can we please move forward please.