Python environment construction and IDE selection (reprint)

Source: Internet
Author: User
Tags sublime text jupyter notebook pycharm community edition

Python environment building and IDE selection

AI Community http://studyai.com

System: Windows 7

Version: Python 2.7

First, install Python

Before we start programming, we need to build a Python environment, which is not too much of a problem for many people, but there are many people who spend a lot of time here, so it's worth talking about some basic installation.

1. Open a Web browser to access the Python installation package website: https://www.python.org/downloads/

Download website

2. Click "Download python 2.7.11" (Python has two versions to avoid disunity, it is recommended to use Python2.7)

3. Double-click the downloaded installation package "Python-2.7.11.msi", the installation process needs to be careful to modify the Add program to environment variables, such as.

Adding environment variables

4. Run Python, press win+r after you enter cmd and click OK.

Go to command Line window

5. Enter "Python" after entering the DOS command line, and if you see a hint that Python is not an internal or external command, you need to check the configuration of the environment variable.

Environment variables not configured results congratulations on your success.

When you get here, you can start a fun programming trip. However, the more wonderful is still in the back.

Second, Anaconda scientific calculation package

Python is a powerful programming language that provides many modules for scientific computing, including NumPy, scipy, and Matplotlib.

To use Python for scientific computing requires one by one of the required modules to be installed, which may be dependent on other software packages or libraries, making it relatively cumbersome to install and use.

Fortunately, someone is doing this kind of thing, compiling the modules needed for scientific computing and then packaging them for use in the form of a release, Anaconda is one of the most popular scientific computing distributions.

The same kind of Python (x, y), Canopy, compared to the more recommended anaconda. Of course Anaconda in addition to the integration of commonly used packages, it also has the Spyder IDE, IPython, Jupyter Notebook, can meet your multi-use environment to improve convenience.

1. Download Anaconda

Address: Https://www.continuum.io/downloads

According to the version of the selection of the appropriate installation package, it should be noted that if the previous Python needs to be uninstalled, because Anaconda comes with a python environment, the same is also divided into python2.x and python3.x, here we choose Python2.7.

Download website

2. Installing Anaconda

Note that selecting just Me here may cause the program to not be found on the shortcut startup.

Attention!!

After successful installation, you can find the Anaconda folder in the Quick Launch bar

Installation Successful

If you have installed Anaconda, congratulations you can save a lot of time to install third-party libraries.

Python third-party library installation process of various errors are not bothered a lot of people including myself, of course, no integrated library How to install the follow-up and continue to explain.

Three, the Spyder IDE

The Spyder (formerly known as Pydee) is an open source cross-platform scientific operation IDE using the Python language. The Spyder integrates Numpy,scipy,matplotlib and IPython, as well as other open source software.

Spyder Interface

If you have installed the anaconda, you do not need to install the Spyder, and the Spyder can only be double-clicked in the Anaconda shortcut folder.

Iv. Pycharm IDE

Pycharm is a python IDE created by JetBrains.

Pycharm has the functionality of the general Python IDE, such as: debugging, syntax highlighting, project management, code jumps, smart tips, AutoComplete, Unit testing, versioning, and more.

Pycharm Professional Edition is charged, while community office is free, of course, will cut off a part of the function, but for our usual use almost no impact.

Pycharm Community Edition official:

https://www.jetbrains.com/pycharm/download/#section =windows

For Community Edition Please select Community

V. Use of recommendations

If you're not afraid to toss, you can use the Python official installation package to install a third-party library, and then use the sublime text convenience to write code, if you do not know the computer is not particularly recommended to install Anaconda can save a lot of unnecessary trouble, and pycharm use.

Of course, there are many IDE and scientific computing packages in practical application, everyone's experience is not satisfactory, can choose according to their own preferences.

Python


Jian Yangjun
Links: http://www.jianshu.com/p/0bd0bc73eff2
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Python environment construction and IDE selection (reprint)

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.