Python is not an internal or external command (perfect solution)

Preface

I recently tinkered with Python and wrote a small program to crawl the website. I found that someone was writing about automatic check-in of CSDN with a crawler (randomly (luan)), and then found that when executing the command to install selenium, it prompts "Python is not internal or external "Command"
In fact, I wrote a similar article before. What is not an internal or external command? The principle is to load the path of the software exe file into the path environment variable (you can also do other things! Click to view more Sao operations click to view )

problem

Python不是内部或外部命令

solution

Right-click on My Computer—>Select Properties—>Select Advanced System Settings—>Environment Variables—>Select Path and click Edit—>Add the path to the parent path of python.exe + the path of the Scripts folder (win10 system does not need to add Semicolon, other things you need to pay attention to are English semicolons)
Insert picture description here
Insert picture description here

note

Python installation path: C:\Users\Adam\AppData\Local\Programs\Python\Python36
Scripts folder path: C:\Users\Adam\AppData\Local\Programs\Python\Python36\Scripts and
above are my local Please modify the path accordingly.
Restart a dos window, otherwise it will not take effect
(win8 environment variables must be separated by English semicolons, otherwise it will not take effect)

Guess you like

Origin blog.csdn.net/l_mloveforever/article/details/112722832