pip install xxx reports SyntaxError: invalid syntax

Python-pip install xxx reports SyntaxError: invalid syntax

After installing python, after entering the python running environment, because I wantusepipInstall and develop third-party libraries required by the Web App,After executing pip install aiohttp, SyntaxError: invalid syntax will be reported. At first, I thought it was a spelling or space problem or a python version problem. The result is the same with pip3.




Then Baidu took a look and found that it was originally installed with pipIt must be started from the cmd command line, but cannot be run in python. Just quit the python environment and execute pip.


>>> exit()


C:\Users\jiangmengying01>pip install aiohttp
Collecting aiohttp
  Downloading aiohttp-2.3.6-cp36-cp36m-win_amd64.whl (370kB)
    35% |███████████▌                    | 133kB 812kB/s eta 0:00:01
    38% |████████████▍                   | 143kB 956kB/s eta 0:00:0
    41% |█████████████▎                  | 153kB 1.0MB/s eta 0:00:

。。。。。

Intelligent Recommendation

PIP instructions appear SYNTAXERROR: Invalid Syntax Solution

Wrong reason Perform PIP instructions in the Python run environment is wrong Solution Run PIP in CMD or in Anaconda PROMPT...

scrapy startproject soidername reports SyntaxError: invalid syntax

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...

ryu-manager reports SyntaxError: invalid syntax

It is obviously said that it is a syntax error, unbuntu comes with python2.7 and python3.5, and the landlord has installed python3.7 himself The online installation is directly using pip. There is a d...

error: install pip and execute `yum -y install epel-release` to report an error` SyntaxError: invalid syntax`

When installing pip in Centos7, the installation and execution commands are as follows: When executing the first step command, an error is reported: Here should be when we install python3 in Centos7, ...

PIP Install PowerLine-Status error sys.stderr.write (f "error: {eXC}" SyntaxError: Invalid Syntax

Problem Description The error message is as follows: Execute the command when beautifying the Terminal window comes with the ITERM2 + OH MY ZSH Report an error. problem solved Upgrade PIP and install ...

More Recommendation

Reprinted: Python When using PIP INSTALL SYNTAXERROR: INVALID SYNTAX Error Solution

Reprinted: Python When using PIP INSTALL SYNTAXERROR: INVALID SYNTAX Error Solution PIP cannot be called Just entering Python, you need to use a third party module, but according to tutorial use >&...

Install a third-party module in Python, and run the pip command prompt: SyntaxError: invalid syntax. Perhaps you forget a comma?

Run pip install module name in python idle, SyntaxError: invalid syntax. Perhaps you forget a comma? Error Cause: Invalid syntax prompts because the pip command is not in the running python interprete...

Install epel-release error: SyntaxError: invalid syntax

Scenario: To install pip, you must first install the epel-release dependency (just installed python3). carried out yum install -y epel-release Direct error, as follows the reason:Because you have just...

Install FeedParser Display SyntaxError: Invalid Syntax

Install with Python3.5 in the machine learning in active FeedParser. Perform python setup.py install in CMD. Then report an error Then check the meaning of F-String: Format {} content, not displayed a...

Python installed using pip appears SyntaxError: invalid syntax

In Python command line installation pandas module, there are mistakes >>> pip install pandas  File "<stdin>", line 1     pip install pandas      ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top