tags: python editor Download pip
Python-pip install xxx reports SyntaxError: invalid syntax
After installing python, after entering the python running environment, because I want to use pip to install the third-party libraries needed to develop the Web App, execute pip install aiohttp, and I will find an error SyntaxError: invalid syntax. At first I thought it was a spelling or space problem or python Version problem, the result is the same with pip3.

Then Baidu took a look and found that it had to be started from the cmd command line when it was installed with pip, but it could not be run in python. Just quit the python environment and execute pip.
The above solution to the problem of SyntaxError: invalid syntax reported by pip install xxx is all the content that the editor has shared with you. I hope to give you a reference and hope that everyone will support us.
When we install the package with PYTHON PIP command, the SYNTAXERROR: INVALID SYNTAX error occurs, as shown below: Workaround: When we install the package with a PIP command, we directly enter stateme...
There was such an error when I was running a ready-made program on github today.SyntaxError: invalid syntax. Remind that there are illegal statements, oh! According to the error prompt, I found that I...
Error: SyntaxError: invalid syntax Where? Python code to run when an error Way? Python def class if elif for while other statements without adding at the end: the key symbol W...
Syntax error: invalid syntax 1. Def, class, if, elif, for, while and other statements without adding " : "Key symbol, 2. Mixing of assignment operators and comparison operators For exa...
SyntaxError: invalid syntax SyntaxError: invalid syntax such as input Report an error File “”, line 1 print “Hello,World” SyntaxError: Missing parentheses in call to ‘pri...
Athttps://pypi.org/project/pip/#downloadsDownload and enter python setup.py install from the directory to the console to install pip 20.0.2, and try to install the pymysql plug-in using pip install, a...
contents Python2 PIP instruction error SYNTAXERROR: INVALID SYNTAX Install PIP using YUM Solution Python2 PIP instruction error SYNTAXERROR: INVALID SYNTAX Install PIP using YUM Use YUM installationyu...
experience Python 3 executes the Python script import CV2 error, found that the CV2 under the specified python2.7 directory, later installed the PIP3 in order to install the Python3 version, the resul...
Wrong reason Perform PIP instructions in the Python run environment is wrong Solution Run PIP in CMD or in Anaconda PROMPT...
Just started learning crawlers. After the environment is configured, follow the introductory tutorial to start building the first crawler project: So, silly me, I entered the python environment and en...