02-python Download and install _python programming path

Source: Internet
Author: User

Original published in Teksi blog www.susmote.com

Before we tell you about the background of Python, as well as the advantages and disadvantages of Python, I believe that through the introduction of many people have already known whether or not to choose to learn python, if already very interested, then you can view some of the official Python documents, Or buy a book to chew, if you are not interested in the moment, do not worry about giving up, try to read a few more lessons, if really not interested also is normal, Python is not the best language

Download for Python

Python download is very simple, directly into the official website https://www.python.org/

Click Downloads

There are two versions for us to choose, one is Python3, there is a Python2, we choose to download the stable version of Python3, the above he directly display the Windows version, if you want to download other versions please select the system, the official web is very clear, I do not do too much explanation.

Linux side only source files, download down can

Of course you might need to download a specific version of Python, and you just scroll down and have all the Python versions below

There are also various versions of the detailed release time, interested to understand the following

Python Scientific Computing release

Anaconda:

Anaconda refers to an open source Python release that contains more than 180 science packages, including Conda, Python, and their dependencies. [1] because it contains a large number of science packages, Anaconda download file is larger (about 515 MB), if only some packages, or need to save bandwidth or storage space, you can also use Miniconda this small release (Conda and Python only).

Installation of Python

Python can run on all current mainstream platforms, such as Linux, Windows, Mac OS X, since the author is not very popular with Mac OS X, so the installation course is mainly divided between Linux and Windows two platforms

Linux

Linux itself with Python interpreter

Just the version is 2.6, in order to support the future development, so I suggest with Python3 stable version

Linux python installation can only be installed through the source code compilation

1. To install the dependent environment first, we can install it by yum

# yum-y Install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-de Vel libpcap-devel xz-devel

2. Then create a Python directory, typically created in the/usr/local/python3

# mkdir-p/usr/local/python3

3. Move the downloaded Python installation package to this directory

# Mv/root/python-3.6.5rc1.tgz/usr/local/python3

4. Unpacking the Python installation package

# TAR-ZXVF Python-3.6.5rc1.tgz

5. Enter the extracted directory to compile the installation

# CD python-3.6.5#./configure--prefix=/usr/local/python3

Make

# make

Make install

# make Install

6. Establish a soft link

# ln-s/usr/local/python3/bin/python3/usr/bin/python3

7. Configure Environment variables

# vim ~/.bash_profile#. bash_profile# Get the aliases and Functionsif [-f ~/.BASHRC]; Then. ~/.bashrcfi# User specific environment and startup Programspath= $PATH: $HOME/bin:/usr/local/python3/binexport PATH

Remember to save and exit after modifying, then execute the following command

# source ~/.bash_profile

8. Detect if configuration is successful

# python--vertion or Python3--version

In this step Python is all installed and you can then install PIP and other Python package Manager


Windows

Windows installation is very simple, download a good installation package can be run, directly click Install, of course, there are many types of windowns

I don't have a lot of introductions here.

To run the Python interpreter directly at the command line after installation, you also need to configure the environment variables

Below I focus on the configuration of the Python environment variable under windowns

First right click on this PC properties

Select Advanced System Settings

Select Environment variables


Select Path in the edit system variable

Add a Python installation directory

Note that each path is separated by semicolons

# D:\Users\smarter\Anaconda3

?? The above is my path, because I installed the Anaconda scientific calculation package, so may not be the same as you

Then enter the Python--version on the command line, and if the Python version number appears, the installation is successful.

Python installation is here, if there is nothing to understand can leave a message, or self-surfing internet search

In the next section we formally enter the study of Python

Select Path in the edit system variable

02-python Download and install _python programming path

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.