installation of 1.3-1.5 python

Source: Internet
Author: User

Python official website Download: https://www.python.org/downloads/
Download slow access to Soho download Source: Http://mirrors.sohu.com/python

Python3 The latest version is 3.6, but most of the code still uses Python2, so install the latest python2.7 as a basic learning version

One, install Python under Linxu

Linux versions are installed by default Python2
Package Management Installation
Centos

yum install -y python

Ubuntu/debian

sudo apt-get install python

Source Installation python:
Download the latest version 2.7

wget http://mirrors.sohu.com/python/2.7.14/Python-2.7.14.tgztar zxvf Python-2.7.14.tgzcd Python-2.7.14./configuremake make install

To add a system variable:

vim /etc/profile.d/path.sh#!/bin/bashexport PATH=$PATH:/usr/local/bin/python
Second, install Python under windowns:

1, download
Https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi
2, double-click the installation, next step to complete the installation

Remember the installation path, installed by default in C:\Python27,

3. Add System Environment variables
Python3 version of the Windows installation interface has the option to select the PATH environment variable, and the Python2 installation interface does not, you need to manually add environment variables
WINDOWS10 under

选择我的电脑---》右键属性---》左侧,高级系统属性---》右下角,环境变量,下方系统变量中选择Path,编辑---》新建---》填写安装路径 ---》确认退出

Win7 the previous option, in the Edit Path option, at the end of the variable value in English ";" Semicolon-separated Add installation path

or CMD execution.

4, check that the variables are correct
Win key +r Open cmd
Enter Python on the command line to go to the Python parsing interface to illustrate the installation success

PS C:\Users\songliang> pythonPython 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>>
Third, install under MAC OS:

Install with package management homebrew (recommended)

brew install python

The Macs system comes with a python environment, you can also download the latest version of the installation on the link http://www.python.org/download/
The disadvantage is that later upgrades uninstall need to maintain themselves,
Installation location can be viewed using which Python
Enter Python in the terminal after the installation is complete to verify success

installation of 1.3-1.5 python

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.