Home > Backend Development > Python Tutorial > python is not recognized as a workaround for an internal or external command

python is not recognized as a workaround for an internal or external command

angryTom
Release: 2020-03-02 16:42:16
Original
14167 people have browsed it

python is not recognized as a workaround for an internal or external command

python is not an internal or external command solution

This problem occurs because Python.exe cannot be found in the current path For executable programs, the most direct solution is to manually configure environment variables. The specific method is as follows

Recommended: "Python Video Tutorial"

1. In the "Computer" icon Right-click on the system, then select "Properties" in the pop-up shortcut menu, click the "Advanced System Settings" hyperlink in the properties dialog box, and the "System Properties" dialog box as shown in the figure will appear.

python is not recognized as a workaround for an internal or external command

2. Click the "Environment Variables" button, and the "Environment Variables" dialog box will pop up, as shown in Figure 3:

python is not recognized as a workaround for an internal or external command

3. Select the Path variable in the "System Variables" column, and then click the "Edit" button. At this time, the "Edit System Variables" dialog box will pop up:

python is not recognized as a workaround for an internal or external command

4. Manually add "G:Python\Python36;G:Python\Python36/Scripts;", please note , do not throw away the middle and last semicolon, and change the Python installation path to your own, and then click the OK button to complete the setting of the environment variables.

Emphasis: Do not delete the variable value that originally exists in the system variable Path, and the semicolon in it is output in English, otherwise an error will occur.

After the modification is completed, enter the python command in the command line window, and you should be able to successfully enter the Python interactive interpreter.

For more related questions, please pay attention to PHP Chinese website!

The above is the detailed content of python is not recognized as a workaround for an internal or external command. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template