Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
For example:
ERROR: This script does not work on Python 3.2 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.2/get-pip.py instead.
In kudu/docker/bootstrap-python-env.sh:
# We use get-pip.py to bootstrap pip outside of system packages. # This prevents issues with the platform package manager knowing # about only some of the python packages. if [[ "$PYTHON_MAJOR" == "2" && "$PYTHON_MINOR" == "7" ]]; then # The standard get-pip.py URL no longer supports Python 2.7, # so we need to use the version specific one. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python else # Use a stable version of pip that works with Python 2 and 3. curl https://bootstrap.pypa.io/get-pip.py | python - "pip < 20.3.4" fi
The url: https://bootstrap.pypa.io/get-pip.py has a minimum Python3 version requirement of 3.7.
We would need another if statement to cover <3.7. The error message shows the url type which should be used: ttps://bootstrap.pypa.io/pip/<python_version>/get-pip.py