Configure environment variables in Python and environment variables in python

Source: Internet
Author: User

Configure environment variables in Python and environment variables in python
After Python is installed, run cmd (win + R): Enter Python in the console. If the installation is complete, open Python in the console: If Python is not added to the environment variable, will prompt"Python is neither an internal or external command, nor a program or batch file that can be run"In this case, you need to add Python to the environment variable.1. Add system settings.Control Panel → system and security → system → advanced system settings, click environment variables, and then click path to copy the Python installation address to the new variable, remember to add a semicolon before.2. Add in command line mode.Assume that the Python installation path is c: \ python36, win + R run cmd to open the command line, and enter:

PATH = PATH; c: \ python

After the preceding environment variables are successfully set, you can directly run python on the command line. If a similar problem occurs during use, add the path in the same way.

 

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.