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

Downloading packages:
  File "/usr/libexec/urlgrabber-ext-down", line 28
    except OSError, e:
                  ^
SyntaxError: invalid syntax

the reason:Because you have just upgraded Python, you must also update the urlgrabber-ext-down file to update the yum file. Be consistent with the first line of / usr / bin / yum. Unless you are both wrong.
execute:

vim /usr/libexec/urlgrabber-ext-down

Mine is modified to 2.7

#! /usr/bin/python2.7

Intelligent Recommendation

ELSE error SYNTAXERROR: Invalid Syntax

Original code: Wrong Then I found it because there is no TAB. . . after modification: This is good...

REPO error SYNTAXERROR: INVALID SYNTAX

solve This is because Python's version issues...

repo error: syntaxerror: invalid syntax

1. execute commands 2. The error is as follows: File "aosp/.repo/repo/main.py", line 79     file=sys.stderr)         ^ SyntaxError: invalid syntax 3. Solution R...

CentOS6.5 install Docker error No package docker available using yum install epel-release invalid solution

Once when CentOS6.5 installed Docker error No package docker available We only need to do one step Just operate But now this operation is invalid, run Still error No package docker available We only n...

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

More Recommendation

WINDOWS pip install itchat SyntaxError: invalid syntax

The rookie who has just learned python is really puzzled to see the above code. Because I have learned R before, I can’t understand the install syntax in IDLE. I went through other tutorials and...

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

PIP Install XXX Times Syntaxerror: Invalid Syntax

PIP Install XXX Times Syntaxerror: Invalid Syntax After installing the Python environment, I reported an error in Invalid Syntax when I PIP third -party library. But after trying again, I found that i...

Error when installing yum: SyntaxError: invalid syntax

Error when installing yum: SyntaxError: invalid syntax After installing the python3 environment, executing the yum command will prompt the syntax error. Because the python environment is connected to ...

Reptile notes: SyntaxError: invalid syntax error

When writing a crawler, I encountered a SyntaxError: invalid syntax error. Output: Reason: Python's syntax error, here I am file_path = ('{0}/{1}.{2}’.format(os.getcwd(), md5(content).hexdigest(...

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

Top