Description
Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run prefix=options.prefix_path, File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 732, in install **kwargs File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 886, in install spinner=spinner, File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 736, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zR9pmu/isort/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-MhGoG4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zR9pmu/isort/ Converted retries value: Retry(total=0, connect=None, read=None, redirect=None) -> Retry(total=Retry(total=0, connect=None, read=None, redirect=None), connect=None, read=None, redirect=None) Converted retries value: Retry(total=0, connect=None, read=None, redirect=None) -> Retry(total=Retry(total=0, connect=None, read=None, redirect=None), connect=None, read=None, redirect=None) Starting new HTTPS connection (1): pypi.python.org "GET /pypi/pip/json HTTP/1.1" 301 122 Starting new HTTPS connection (1): pypi.org "GET /pypi/pip/json HTTP/1.1" 200 23544 You are using pip version 8.1.1, however version 20.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. The command '/bin/bash -o pipefail -c pip2 install -v astroid==1.6.5 configparser==4.0.2 pylint==1.9.2 python-dateutil==2.7.3 && rm -rf /root/.cache' returned a non-zero code: 1
Recently isort 5.0.0 is released and dropped Python 2 support.
https://timothycrosley.github.io/isort/docs/major_releases/introducing_isort_5/
Attachments
Issue Links
- is related to
-
HADOOP-17120 Fix failure of docker image creation due to pip2 install error
- Resolved
- links to