Lesson Description - Installing Python 3.7 on CentOS 7
Lesson Description - Installing Python 3.7
on CentOS 7
Learn how to install Python 3 from source on a CentOS 7 machine.
Note: This course uses Python 3.7 and you will definitely run into issues if you are
using Python < 3.7.
Download and Install Python 3 from Source
Here are the commands that we'll run to build and install Python 3.7:
$ sudo -i
$ yum groupinstall -y "development tools"
$ yum install -y \
libffi-devel \
zlib-devel \
bzip2-devel \
openssl-devel \
ncurses-devel \
sqlite-devel \
readline-devel \
tk-devel \
gdbm-devel \
db4-devel \
libpcap-devel \
xz-devel \
expat-devel \
postgresql-devel
$
$
$
$
$
$
$
cd /usr/src
wget
tar xf Python-3.7.2.tar.xz
cd Python-3.7.2
./configure --enable-optimizations
make altinstall
exit
Important: make altinstall causes it to not replace the built in python executable.
Using sudo nano /etc/sudoers (or your preferred text editor), ensure that secur
e_path in /etc/sudoers file includes /usr/local/bin. The line should look something
like this:
Defaults
bin
secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/
Upgrade Pip (might not be necesary)
The version of pip that we have might be up-to-date, but it's a good practice to try
to update it after the installation. We need to use the pip3.7 executable because
we're working with Python 3, and we use sudo so that we can write files under the /
usr/local directory.
$ sudo pip3.7 install --upgrade pip
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- version 7 2 to 7 4 upgrade procedure audiocodes
- linux system upgrade instructions offline netbrain
- red hat enterprise linux 7 red hat customer portal
- centos 6 to centos 7 migration guide for hyper v unitrends
- jul 16 2022
- python 2 7 3
- lesson description installing python 3 on centos 7 amazon web services
- red hat enterprise linux 9
- nagios core installing on centos 7
- release notes quantum
Related searches
- python 3 7 reference pdf
- anaconda for python 3 7 windows
- python 3 7 install pip ubuntu
- anaconda python 3 7 install
- python 3 7 9 download
- python 3 7 functions
- python 3 7 quick reference sheet
- install python 3 7 on centos 7
- python 3 7 3 shell download
- python 3 7 free download
- python 3 7 cheat sheet pdf
- python 3 7 ubuntu 16