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:
- The problem of “value error: zero length field name in format” in Python 2.6.6 of CentOS 6.9
- [Python] error syntax error: summary of solutions to invalid syntax
- Tensorflow import error: DLL load failed: the specified module could not be found
- tensorflow import error: DLL load failed: The specified module could not be found (DLL load failed: The specified module could not be found)
- [error reported] [Python] [Matplotlib] importerror: failed to import any QT binding
- sys.path.append(), os.path.exists(), os.path.join() and os.makedirs() meaning
- cannot import name ‘_validate_lengths’ from ‘numpy.lib.arraypad’
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’
- Fatal Python error: initfsencoding: unable to load the file system codec
- Windows git review reported an error. UnicodeDecodeError
- Error syntax error: invalid syntax in PIP install XXX
- Importerror using tensorflow: DLL load failed: the specified program cannot be found
- In Python, import XXX does not report an error, but in IPython (Jupiter notebook)
- Gunicorn reported error worker failed to boot
- Worker failed to boot
- An error occurred when starting pyspider with Python 3.7
- Mac upgrade pip
- Solving windows error: [error 87] classification: problem summary
- Error encountered while executing PIP install: error: complete output from command Python setup.py egg_ info:
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed