Python Learning Notes Chapter II: Installing Python

Source: Internet
Author: User
Tags bz2

Remember the last time I wrote Python learning notes is three months ago, during the period seen, also put down, this time to adhere to, bang, eat python.

This article is mainly based on the "Concise Python Tutorial" and some of their own understanding to write, there are problems, please point out.

First, install under Linux

If you are using a Linux operating system, then congratulations, you can basically not install Python, because most Linux operating systems installed the system by default when the Python.

To test whether your system has Python installed, you can execute the following command

Python-v

Displays the following Python version information, which means you have Python installed.

If you enter Python-v, the return value is: Bash:python:command not found that means you are not installed.

There are a number of ways to install:

You can use Yum to install, perform yum-y install python*

You can also use the RPM package to install, perform python-x.x.x-x.rpm Of course this requires you to install a lot of dependency packs.

You can also use the Source pack installation

wget http://python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2

Tar jxvf python-2.6.6.tar.bz2

CD Python-2.6.6

./configure--PREFIX=/USR # # #指定安装位置

Make

Make install

# # #linux下安装就完成了. ###

Second, install under Windows

Windows users also need to download Python first, depending on the operating system, the choice of download version is different.

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.