![]() ![]() I tried running the command with the pip I have locally for python 2.7, and the command worked succesfully. I am not sure which version of python does python-pip contains in the centos:7 image being used by the Dockerfile.Īlso looks like RUN pip install -upgrade setuptools is trying to upgrade to setuptools 47.1.1, but according to a URL present in the error message ( ), Python 2 support is dropped post setuptools 45. The upgrade message is just a suggestion which older pip versions generate so that the user can be notified of upgrading to latest pip, and is not the problem here. The command '/bin/sh -c pip install -upgrade setuptools' returned a non-zero code: 1 You should consider upgrading via the 'pip install -upgrade pip' command. You are using pip version 8.1.2, however version 20.1.1 is available. Warnings.warn(pre "*" * 60 msg "*" * 60)Ĭommand "python setup.py egg_info" failed with error code 32 in /tmp/pip-build-i79LHt/setuptools/ Pkg_resources/py2_warn.py:15: UserWarning: Setuptools no longer works on Python 2 Step 4/26 : RUN pip install -upgrade setuptoolsĬomplete output from command python setup.py egg_info: # NOTE: This shell out is needed to avoid RQD getting PID 0 which leads to leaking child processes.ĮNTRYPOINT If you want to make sure your other Python packages are also up to date, follow the instructions here. The correct command should be: for Python 3: python3 -m pip install -upgrade pip for Python 2: python2 -m pip install -upgrade pip P.S. ![]() Creation of virtual environments is done through the venv module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |