' Python ' is not an internal or external command, it is not a running program or a batch file.

Source: Internet
Author: User
' Python ' is not an internal or external command, it is not a running program or a batch file.

After I install Python in D, enter Python to display the following questions

D:\>python
' python ' is not an internal or external command, nor a running program
or batch file.

The essence of this problem is that Windows CMD does not recognize the Python symbol (that is, the symbol is an executable program), because Windows is similar here and encounters a character that first queries the default path to see if the symbol is an executable program

The newly installed Python is installed under D-Disk python, which is not a default path to Windows, so Windows queries the symbol for Python under its own default path, so it will report the wrong solution .

Add the installation path for Python to the working path to Windows 1.win7

Right click on My Computer-> properties-> Advanced System Configuration-> Click on the Advanced column, where the field to open the environment variable-> in the system variable path to join the Python installation path, such as mine is D:\Python27

Enter python-v in cmd to check if the settings are successful 2.win10

Right key win four square symbol, select the system-> advanced system settings, in which select the Advanced column, where the bar to open the environment variable-> in the system variable path to join the Python installation path, such as mine is D:\Python27

Enter python-v in cmd to check if the settings are successful

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.