Python learning 1-python and pycharm download and installation

Source: Internet
Author: User
Tags set background pycharm download

This article mainly describes the download and installation of Python and the download and installation of the Python editor pycharm.

First, the download and installation of Python

1. Download

Download the Python installation file to the Python website and display it after entering the site as follows:

Slow Internet access can be downloaded directly here:python-2.7.11.amd64

There are corresponding supported platforms in downloads, here we are running under Windows platform, so click on Windows and appear as follows:

All versions of the Python update are shown here, with the top two lines being the last updated version of python2.x and python3.x, respectively.

Because python2.x is relatively mature, and most third-party libraries are based on 2.x, choose to download Python2.7.11 here, of course

You can also choose to install the Python3.5.1, the methods are all connected.

Click to enter the following page, select the corresponding version of your computer, here is the choice of Windows 64-bit.

2. Installation

Click the MSI installation package that runs the download, and when you select a step in the installation component, be careful to tick all the components:

It is particularly important to note that add python.exe to Path , if not added, will be added to the environment variable later.

The default is to C:\Python27 install to the directory, open a command prompt, enter Python,

Display as above interface indicates successful installation!

You see the >>> prompt indicates that we are already in the Python interactive environment, you can enter any Python code, carriage return will immediately get the result of execution.

Enter print "Hello world!" Enter to display execution of the resulting code.

Second, download, install Pycharm

We can write execution code in Python's interactive environment, but this is only suitable for short code, it is inconvenient to write it here when there is long code.

Python has its own IDE, according to its own use of the situation, it feels pycharm this IDE than the IDE is good, the following introduction pycharm

To download and install:

1. Download

Login Pycharm official website download pycharm installation file

Download slow on the official website can be downloaded directly here pycharm-professional-4.5.4

2. Installation

After the download is complete, run the file to install click Next, continue to install, run Pycharm after the installation is complete, first run select below

Click OK, the interface that appears, to activate or buy, you can also do a free 30-day trial. You can enter a registration code if you need to register. Reference: Registration Code

After registering, open pycharm.

New Project Hello, then right-click the project new Python file hello.py

Input code

Print ("Hello world!")

Click Run->run to run the program code to show success!

Three, Pycharm common settings ( version Pycharm4.5.4 Each version will be different )

1. Set Background theme

File->settings->appearance->theme

2. Set the font size

One is to set the text size of the editor

File->settings->appearance

One is to set the code font

File->settings->editor->color & Forts->font

3, set the display line number

File->settings->editor->general->appearance

4, set the encoding format, to prevent the occurrence of Chinese garbled

File->settings->editor->file Encodings

Python learning 1-python and pycharm download and installation

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.