Install Python and Pip

Source: Internet
Author: User
Tags install django pip install django

Contact Python for the first time

A little strange.

I've been installing the information.

It's fairly smooth.

The Python is installed first

I am installing the 3.5.0-x86 (32-bit) version

Python installation package Download: httpw://www.python.org/downloads/

Run after download

The same program as the usual installation software

I just didn't notice. Can change the default installation path

Because of this, my path is long.

After installation is complete

Enter the python command with the cmd command

Hint that Python is not an internal or external command

Right-click on the ' Computer ' property, the following interface appears, I use the WIN10 system

Select ' Advanced system Settings ' and the following interface will appear:

Click on "Environment variable", the following interface appears:

Select Path Edit,

Add your own Python directory above, my directory installation path is very long, I directly copied into the.

Once added, turn off the cmd command box, turn it back on, and enter Python again to use it normally.

I will now just install, but will not really use, tomorrow will be able to touch the basic use of ~ new things or quite look forward to.

The next step is to install the Python extension library.

I am installing the extension library through PIP

Pip is a tool for installing and managing Python packages.

Download PIP pack: https://pypi.python.org/pypi/pip#downloads

Unzip to a folder, this folder does not require

After decompression, through the cmd command into the directory

CD C:\PIP9

Enter after entering

Python setup.py Install

You'll have PIP installed.

During the period because I think my Python folder name is long I changed the folder name

So that when you install PIP here, Python is not an internal or external command.

Fortunately, I had a reaction to change the path within the environment variable.

PIP installation succeeded after modification

You can enter by using the cmd command

Pip

The basic information is displayed, which means that PIP can be used correctly.

The first library I installed was Django

Input via cmd command

Pip Install Django

The system will be installed

The process is a bit long

The interface after successful installation

So using PIP to install the library is still very simple.

Libraries can specify versions or do not specify

If you do not specify a version, the latest version is installed by default

If you need to specify a version you can enter the following command

Pip Install django==1.9.7

can also be installed successfully

The Python study begins tomorrow.

Install Python and Pip

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.