Home > System Tutorial > LINUX > How to install python3.5.3 under linux

How to install python3.5.3 under linux

WBOY
Release: 2024-06-27 11:42:58
Original
503 people have browsed it

How to install python3.5.3 under linux

Install the dependencies that may be used by python3.5

yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
Copy after login

Go to the python official website to find the download path and use wget to download

wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz
Copy after login

Unzip the tgz package

tar -zxvf Python-3.5.3.tgz
Copy after login

Move python to /usr/local

mv Python-3.5.3 /usr/local
Copy after login

Remove old versions of python dependencies

ll /usr/bin | grep python
rm -rf /usr/bin/python
Copy after login

Enter the python directory

cd /usr/local/Python-3.5.3/
Copy after login

Configuration

./configure
Copy after login

Compile make

make
Copy after login

Compile and install

make install
Copy after login

Delete old soft links and create new soft links to latest python

rm -rf /usr/bin/python
ln -s /usr/local/bin/python3.5 /usr/bin/python
python -V
Copy after login

The above is the detailed content of How to install python3.5.3 under linux. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template