Lesson Description - Installing Python 3 on CentOS 7
Lesson Description - Installing Python 3 on CentOS 7
Learn how to install Python 3 from source on a CentOS 7 machine.
Download and Install Python 3 from Source
Here are the commands that we'll run to build and install Python 3:
$ sudo su [root] $ yum groupinstall -y "development tools" [root] $ 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
[root ] $ cd /usr/src [root ] $ wget [root ] $ tar xf Python-3.6.4.tar.xz [root ] $ cd Python-3.6.4 [root ] $ ./configure --enable-optimizations [root ] $ make altinstall [root ] $ exit
Important: make altinstall causes it to not replace the built in python executable.
Ensure that secure_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 Necessary)
The version of pip that we have might be up-to-date, but it's good practice to try to update it after the installation. We need to use the pip3.6 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.6 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
- rdkit documentation
- the python guide for beginners
- estreamer encore for microsoft sentinel 3 6
- s32 design studio for s32 platform 3 nxp
- a simple guide to install openstack icehouse on centos
- lesson description installing python 3 on centos 7
- rancid server build and operation overview 0 3
- helix core p4python developer guide
- software collections centos
- install admin guide for openemm 2020
Related searches
- python 3 8 centos 8
- python 3 8 centos 7
- python 3 on centos 7
- installing matplotlib on python 3 8 3
- install python 3 on windows
- centos 7 python 3 8
- install python 3 6 centos 7
- centos 7 python 3 yum
- install python 3 7 on centos 7
- install python 3 on windows 10
- centos 7 install python 3 8
- installing numpy on python 3 8