Problem with pip in python SyntaxError: invalid syntax

When Python2 and Python3 exist on Windows at the same time, the pip install XXX command will always prompt SyntaxError: invalid syntax no matter whether it is executed in the Scripts file directory of Python2 or Python3. At this time, a python.exe launcher needs to be developed to install normally, such as python3 -m pip install numpy

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325042729&siteId=291194637