Home  >  Article  >  Backend Development  >  Where to download python

Where to download python

anonymity
anonymityOriginal
2019-06-19 09:26:2912847browse

Where to download python? The Python language can be used across platforms, and the download and installation can also be divided into two versions: Windows and Linux.

Where to download python

Windows:

Download the python version from the official website of python. You need to download the corresponding version (check your computer-properties) 32-bit operating system or 64-bit operating system), the official website download address is as follows: https://www.python.org/downloads/

Where to download python

Then double-click the downloaded installation package Installation

linux:

Usually Python is installed in /usr/local/python3 (the specific installation location depends on personal preference, but remember to install location), because the directory python3 does not exist in the /usr/local directory, so create a new directory first:

mkdir /usr/local/python3

1. Download Python3 from the official website

https://www.python.org/downloads/

2. Install dependency environment

Installing Python3 requires these four dependencies: gcc, zlib, zlib-devel, openssl-devel

Then install these four software respectively:

yum install gcc -y

yum install zlib -y

yum install zlib-devel -y

yum install openssl-devel -y

3. Unzip the downloaded Python3 installation package

Because the /opt directory is third-party software storage directory, so we move the downloaded installation package to the /opt directory, and then execute the decompression command in the directory:

tar -zvxf Python-3.6.4.tgz ##My installation package is 3.6 .4 of.

4. Compile and install

Enter the decompressed directory and compile in the directory. (Be sure to compile in the decompressed directory, otherwise it will not compile)

cd Python-3.6.4

./configure --prefix=/usr/local/ python3 ##Pay attention to the decimal point symbol. --prefix is ​​to specify the installation directory. The installation directory specified here is /usr/local/python3

make && make install

The above is the detailed content of Where to download python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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