Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python environment building-detailed Python installation tutorial for Amway Python rookies

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Python environment building-detailed Python installation tutorial for Amway Python rookies

Python Advanced

Wechat official account: Python crawler and data mining, reply to "books" with benefits

Sixteen people liked the article.

Life is too short. I use Python. As we all know, Python is becoming more and more popular, and more and more people are learning Python. Recently, I have seen that the friends in the group often encounter a series of problems such as not installing Python or not knowing where to download the Python installation package. In order to facilitate you to learn Python, Xiaobian has arranged a set of detailed tutorials for Python installation. As long as you follow this step, you can easily install Python.

Python is cross-platform, it can run on almost any platform, such as Windows/Unix/Linux and other operating platforms. Most of the friends use Windows. Here, the editor takes the Windows platform as an example to explain in detail the installation process of Python and Pycharm. Note: multi-map high-energy early warning ahead

1. Python installation process

If you want to do good work, you must first sharpen its tools. First of all, let's install Python, here Amway: in fact, you can also install Pycharm before installing Python, there is no conflict between the two. But then again, if there is no Python compiler, then Pycharm is really just a shell, even after you write the program, it will not run. Take a chestnut, Python is equivalent to × ×, Pycharm is equivalent to × × ×, if there is no × × ×, then it has no possibility of misfiring. Logically speaking, you should install Python first. The specific process is as follows:

1. First go to Python's official website: https://www.python.org, and then select the file in the following frame to download:

Of course, you can also go directly to the URL: https://www.python.org/downloads/, select the corresponding Windows installation package, and download the file, as shown in the following figure:

2. Download Python. Both Python2 and Python3 versions are downloadable and are compatible. Here, the editor takes the installation of the Python3 version as an example, which is downloaded as shown in the following figure:

3. Install Python. Double-click the python-3.6.4.exe file, then follow the instructions in the box to select, remember to check the two boxes, and then select Customize installation to proceed to the next step:

4. After entering the following interface, you can choose the next step by default:

5. After entering the interface below, click Browse to customize the installation path. Be sure to remember which disk you install it under. Of course, you can also directly click Install to install by default, and click Install to complete the installation. In this example, the editor installs it on disk C, then click Install, and after a moment, you can install Python. (note: remember the installation path of Python)

If any prompt pops up during installation, just choose OK or allow the action.

6. After the installation is completed, enter the cmd command in the start menu, enter the command line window, and then enter python in the window to verify. If the prompts in the following two pictures appear, the Python installation is successful.

If you see the prompt >, it means that we are already in the Python interactive environment. At this point, you can enter any Python code, and you will get the execution result immediately after you enter. Now, type exit () and enter to exit the Python interactive environment (or you can just close the command-line window).

7. If the prompt in the following figure appears, the installation has failed:

The reason for this error is that you left out the option to check Add python.exe to Path during installation, so you have to manually add the path where you just installed to Path. If you don't know how to modify the environment variables, it is recommended that you rerun the Python installer and check the Add python.exe to Path option to install it smoothly.

Finally, the editor wishes you all a smooth completion of the installation of Python. Have a good weekend.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report