Python Development Environment Configuration rollup under Windows

Source: Internet
Author: User

Recently more attention to the study of Python information and courses, because Python itself is basically under the development of Linux, I windows used to use the first Linux a variety of awkward ah.

Let me share with you the words that I have written down in the context of configuring Windows.

1. Download and install Python

1.Python Official website: https://www.python.org

2. Click Download and select the appropriate version to download.

3. Once the download is complete, install the package directly to the next.

4. Then configure the environment variables, add the installation directory for the computer to the environment variables, add the Python installation directory to the PTH system variable.

5. Enter in the console window: Python, if so, congratulations, the Python environment has been installed successfully.

2. Installing the Python development IDE

  Python has a number of IDE editors:

1. Eclipse's famous eclipse, this is not introduced.    

2.Komodo Edit is a free, open source, professional python IDE characterized by non-menu operation and efficient development. Address: http://komodoide.com/komodo-edit/

3.Vim is a simple, efficient tool that is also suitable for Python development. This seems to use a lot of people, the evaluation is also very good. Address: http://www.vim.org/download.php

4.SublimeText is also an IDE tool for Python development, although Sublimetext is just an editor, but it has a rich plug-in, which makes support for Python development very well in place. Personal feeling this is more like a text editor. Address: http://www.sublimetext.com/

5.Pycharm is a cross-platform Python development tool that is the product of the JetBrains company. Features include: Automatic code completion, integrated Python debugger, auto-matching of parentheses, code folding. Pycharm supports systems such as Windows, MacOS, and Linux, and can develop, debug, and run programs remotely.

This function is really very powerful and easy to use, but after a period of time to actually charge, decisively give up. Address: http://www.jetbrains.com/pycharm/

All of these Ides have their pros and cons, to see a person's preferences. So here's the point!

                    

I'd like to recommend "VS Code", yes!!. This is us. NET people like the tools. Thick vs Style, personal favorite. : https://code.visualstudio.com/. After opening, click Download, select the appropriate version to download.

Installation is also very simple, all the way next. Once the installation is complete, click the Extension button on the left side of the form to install the Python extension.

  

is not looking very comfortable!!

Do you think it's a good way to start the Python development? No,no,no!

3.PYthon PIP Installation

  Because Python is rich in third-party expansion packs, installing the expansion pack as you would with Linux requires that you first install the PIP

Before installing PIP, make sure that you have the Python, and Easy_install tools installed in your win system, if the system is installed successfully, Easy_install under directory C:\Python27\Scripts,

Confirm as follows:

        

  

Go to the command line, and then switch the directory to the script folder under the Python installation directory to run Easy_inatall pip

    

  

After Pip is installed successfully, execute PIP under CMD, there will be the following prompt.

    

Last step: After the installation, we enter PIP directly on the command line, it also shows that ' Pip ' is not an internal command, nor is it a running program. Because we haven't added environment variables yet.

We added in path last: Python installation directory \script

This can be done by entering PIP directly on the command line.

4. install the Python expansion pack

  Let's take the Pygame expansion pack as an example:

1. Go to this website: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame, download the package corresponding to the Python version.

2. Command line input: Pip list. Check to see if wheel is installed and the prompt will appear if installed.

    

3. If wheel is not installed, first install wheel, enter command: Pip install wheel

    

4. Last: Enter Pipinstall PYGAME-1.9.2A0-CP34-NONE-WIN32.WHL (PYGAME-1.9.2A0-CP34-NONE-WIN32.WHL is the name of the package I downloaded, you just have to replace the name of the package you downloaded) (Note: Please exit Pythonidle and install this package)

5. Some libraries can also be installed without downloading, direct command line. such as: PIP3 install requests prettytable docopt. This command installs the three libraries of requests, prettytable and docopt.

So everyone can basically happily start to Pyhton on Windows! Little brother began to learn python, I hope you have good teaching materials and data can be a message recommended to me, we learn together!

Please use your phone "sweep" x

Python Development Environment Configuration rollup under Windows

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.