Development environment Python

Source: Internet
Author: User

Although there are many articles on the web that are built in Python development environment, it is necessary to repeat the wheel, record the process, make it easy for you to configure later, and also facilitate your colleagues in the study to configure their environment.

1. Prepare the installation package

1) on the Python website to download the Python Operating Environment (https://www.python.org/downloads/), the more stable is the python-3.5.2

2) Download the latest version of the IDE (http://www.jetbrains.com/pycharm/download/#section =windows) on Pycharm website, which offers three versions of Mac, Windows and Linux I'm under the Pycharm-community-2016.2.3.exe.

  

2. Installing the Software

1) Install Python runtime environment

Double-click Python-3.5.2.exe

  

Generally use a custom installation is better, or the automatic installation will install the environment in the personal directory, sometimes it is difficult to find

Another tick on the front of the second red box is hit, otherwise you will need to manually add the Python installation path in the path to the Windows environment variable

  

  

The installation path will be modified manually, can be installed to the C drive can also be installed to the D drive

  

Complete the installation

Then we open cmd, enter Python inside, and we can go directly into the code.

We can enter print (' Hello world! ') To test the Python run, such as

  

If the following error occurs in the input Python

  

Then you have to manually add the Python installation path to the system environment variable

Open the Start menu, right-click on the computer = "Properties

  

  

  

  

When selected, click Edit to add the last face separately

; C:\Python\Scripts\; C:\Python\;

This is the installation path that was just

Then open the new cmd (to open the new cmd is valid), enter the python can see just the prompt to enter the coding interface

2) Install Pycharm development IDE

Double-click on the Pycharm-community-2016.2.3.exe, generally by the normal default installation item is OK

  

  

  

  

  

Here is the selection of the IDE editing interface skin, generally using black gray words do not look so dazzling, eye better, here you can also choose to set in the inside.

The installation was successful after submission.

The method of Chinese

To download a Chinese package on the internet renamed Resources_cn.jar, and then directly copied to the installation path in the Lib folder, re-open the IDE is automatically Chinese

To cancel the Han, just delete this file, re-open the IDE to automatically restore the English version

Do not recommend the Chinese, because after the Chinese has a bit of function can not be used or can not be clicked

  

  

To configure the editing interface skin, you can configure it as follows. Normal fonts are smaller by default, or they can be modified by the following configuration.

  

  

Here the list item selection can use different skins

  

When using the default item, the font size cannot be modified directly, click Save As ... Save As, you can modify

  

  

Save As, you can now directly modify the

3. Installation of Python packages

There are two ways to install a package, one is to use the command line, and one is to select the IDE to install

1) command line installation method

Open cmd, enter pip install flask (the name of the package you want to install), press ENTER to start the installation

  

  

Wait a minute, the installation is successful.

Generally we need to upgrade the PIP to the latest version, which will reduce the installation problem

Enter the following command in CMD and the PIP upgrade will start

1 pip install https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9

  

  

  

We enter in cmd: Pip--version can see the current PIP version.

  

  

In case PIP upgrade fails, do not be afraid, you can download the installation package to the Python website to install the upgrade

In the browser address bar, type: HTTPS://PYPI.PYTHON.ORG/PYPI/PIP

  

Download the installation package and unzip to the C packing directory

  

Enter the command under DOS, enter the pip-9.0.1 folder, and enter: Python setup.py install into PIP installation

  

  

Completing the PIP upgrade operation

2) How to install the IDE

Open IDE, click: File = Default Settings

  

Then select Project Interpreter to see the list of Python packages that have been installed, click the + in the top right corner to enter the installation package selection screen

  

In the top search box, enter the name of the package you want to install, you can search for the installation package, and then select it, click on the lower left corner of the install Package,ide will start to enter the download installation, if the cause of the network caused the installation failure, you can click on other items and then point back, then point to install, After several times can be installed successfully, repeatedly after the installation is not successful, you can click to see the cause of the error, you can also use the command mode, directly see the cause of the error.

  

Once you've done this, you're ready to start developing the Pythont program.

  

Copyright Notice:

This article by Allempty original and published in the blog Park, welcome reprint, without my consent must retain this paragraph statement, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility . If you have any questions, you can contact me by [email protected] , thank you very much.

Published this part of the content, the Lord is to work together with everyone to learn common progress, interested friends can gaga Q Group: 327360708, we discuss together.

For more information, please note the blog: http://www.cnblogs.com/EmptyFS/

Development environment Python

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.