An error occurred during PIP executing the command. The exception code is as follows:
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in <module>
from pip._internal.main import main
File "/usr/lib/python2.6/site-packages/pip/_internal/main.py", line 13, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python2.6/site-packages/pip/_internal/cli/autocompletion.py", line 11, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python2.6/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python2.6/site-packages/pip/_internal/cli/cmdoptions.py", line 105
binary_only = FormatControl(set(), {':all:'})
SyntaxError: invalid syntax
Solution:
Add Python installation path to the configuration file:
VI/etc/profile
# python
export PATH=/usr/local/python3/bin:$PATH
Update configuration file
source/etc/profile
Read More:
- Error syntax error: invalid syntax in PIP install XXX
- Solve the problem of syntax error: invalid syntax in PIP install XXX
- Solution to syntaxerror: invalid syntax in PIP install XXX
- Syntaxerror: invalid syntax when executing PIP install XXX
- [Python] error syntax error: summary of solutions to invalid syntax
- Syntax error: invalid syntax before Python string
- Syntax error: invalid syntax
- Repo reports an error syntax error: invalid syntax
- Python: print syntax error: problem with invalid syntax error
- Syntax error: invalid character in identifier
- Solution to command line option syntax error. Type command /? For help
- File “manage.py“, line 17 ) from exc ^ SyntaxError: invalid syntax
- Error reported in Python: syntax error: invalid character in identifier
- Invalid DN syntax (34)
- Exception occurred when Django created app: from exc ^ syntaxerror: invalid syntax
- [Err] ERROR: invalid input syntax for integer: “1.0”
- Shell script execution error: “syntax error near unexpected token”
- Command line option syntax error appears during software installation?
- Syntax Error: SassError: Invalid CSS after “…-height: #{math“: expected expression (e.g. 1px, bold
- Solve the syntax error of Python PIP installation sys.stderr.write (f“ERROR: {exc}“)