Windows Python environment build and first Hello World

Source: Internet
Author: User

Under the Windows environment of the building process, idle No matter record, for later use, also can give a reference to the new entry. Mainly includes the python development environment to download, install, test; the IDE (I chose pycharm) to download, install, configure, and run the first Hello World, as follows:

1: Visit the Python website, address: http://www.python.org/download/, download the latest version of Python.

2: Install the download package: Run the downloaded Python installation package and confirm that the JDK is installed and configured.

3: Configure Environment variables: Add the Python installation directory to the PTH system variable.

4: Test If the Python installation is successful, CMD open the command line to enter the Python command, and then print Hello World, such as success:

5:ide download and installation, to pycharm official website download installation package, Address: https://www.jetbrains.com/pycharm/download/#section =windows, select the Professional version, and then run the installation, complete.

6:pycharm hack: Run the installation good. exe file, select License Server, enter https://jetlicense.nss.im/, and complete the next step.

7: Write the first Hello World: Open pycharm,file--->new project, select the project path, then click Create, right----the >file in the project, enter file name Select file Type Python, Then open the newly created file and enter print ("Hello World")

8: Configure the Run Environment: Select the button, drop-down menu, select the Edit Configuration popup dialog box

In the dialog box, click the green + sign--->python

Name is the project title you built, the script is the Python file you want to run (you can select it from the Back button), and then in Python interpreter, select Python compiler, OK

9: Run: Select the file you want to run, right-click--->run ' hellodemo ' (green triangle button)

If the operation is successful

Now that the Python development environment has been set up, continue to learn the syntax of Python to achieve a variety of magical functions.

Windows Python environment build and first Hello World

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.