Python Development Environment configuration summary in Windows, python Summary

Source: Internet
Author: User

Python Development Environment configuration summary in Windows, python Summary

Recently, I have been paying more attention to the Python materials and courses. Since Python is basically developed in Linux, I am used to using Linux in a new way.

The following is my ban on configuring Windows.

 

1. Download and install Python

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

2. Install Python development IDE

Python has many IDE Editors:

    1. Eclipse, which is famous for all, will not be introduced here.

2. Komodo Edit is a free, open-source, and professional Python IDE. It features non-menu operations and is highly efficient in development. Address: http://komodoide.com/komodo-edit/

3. Vim is a simple and efficient tool and is also suitable for Python development. This seems to have been widely used by many people and has a good rating. Address: http://www.vim.org/download.php

4. SublimeText is also an IDE tool suitable for Python development. Although SublimeText is only an editor, it has a wide range of plug-ins, making it highly available for Python development. I personally feel like a text editor. Address: http://www.sublimetext.com/

5. Pycharm is a cross-platform Python development tool and a product of JetBrains. Its features include: Automatic Code Completion, integrated Python debugger, automatic matching of parentheses, and code folding. Pycharm supports Windows, MacOS, Linux, and other systems, and supports remote development, debugging, and running of programs.

This feature is indeed very powerful and useful, but after a period of time, it will charge fees and give up. Address: http://www.jetbrains.com/pycharm/

These ides have their own advantages and disadvantages. So the point is coming!

                    

I would like to recommend [VS Code], yes !! This is a tool that we. NET people like. Strong VS style, I like it very much. : Https://code.visualstudio.com /. Click Download and select the desired version to Download.

The installation is also very simple, just click Next. After the installation is complete, click the extension button on the left side of the form to install the python extension.

  

Is it very comfortable !!

In this way, you can start Python development happily? No, No, No!

3. Install PYthon pip

Because Python has a wide range of third-party extension packages, you need to install pip first to install the extension package in linux.

Before installing pip, make sure that python and easy_install are installed in your win system. If the system is successfully installed, install easy_install in the C: \ Python27 \ Scripts directory,

Confirm as follows:

 

        

  

Go to the command line, switch the directory to the Script folder under the python installation directory, and run easy_inatall pip

    

  

After pip is successfully installed, run pip in cmd and the following prompt will be displayed.

    

Last step: After the installation is complete, input pip directly on the command line. It also shows that 'pip 'is neither an internal command nor a running program. Because we have not added environment variables.

Add the Python installation directory \ Script at the end of PATH.

Enter pip directly in the command line.

4.InstallPYthon extension package

Take the Pygame extension package as an example:

1. Enter this Website: http://www.lfd.uci.edu /~ Gohlke/pythonlibs/# pygame: Download the package corresponding to the python version.

2. Enter pip list in the command line. Check whether the wheel is installed. If it is installed, a prompt is displayed.

    

3. If you have not installed wheel, install it first and enter the command: pip install wheel.

    

4. finally: Enter the 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 need to replace it with the name of the package you downloaded) (Note: Please exit pythonIDLE and then install this package)

5. Some libraries can be directly installed through the command line without being downloaded. For example, pip3 install requests prettytable docopt. This command installs the requests, prettytable, and docopt libraries.

 

In this way, you can start using Pyhton on Windows! The younger brother started learning Python. I hope you can leave a message and recommend it to me if you have good teaching materials and data!

 

 

 

 

Please use the mobile phone "scan" x

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.