Summary of Python Installation Problems and python Problems

Source: Internet
Author: User

Summary of Python Installation Problems and python Problems

Today is the first time I came into contact with the Python tool. I wrote a video on MOOC and installed and used it.

The instructor on the video did not elaborate on how to install and use Python, but briefly introduced some common Python tools. Then I directly talked about installing the request library. I thought that the request can be directly installed without additional software installation.

After watching the video, I install the request myself. According to his operation code "pip install requsts", the results are not as long as they are expected, but "not internal or external commands, nor runable programs or batch files.".

Problems discovered after research: 1. No Python software is installed. 2. No path is added after the software is installed. 3. pip path also needs to be added.

You can download the Python software from the official website and install it. Select a Windows or mac version based on your platform. After installation, enter Python in cmd. if the version information is displayed, the software has been installed successfully.

In the win10 environment, add the environment step to my computer-properties-advanced system settings-environment variables-find PATH in the system variables-Create Your Python installation PATH and copy it in.

The Scripts file in the Python installation PATH must also be added to the PATH. The method is the same as above.

Now you have installed requests, and pip install requests can be successfully completed.

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.