diff --git a/inc/python b/inc/python index 9c810ec9b9..8064014f36 100644 --- a/inc/python +++ b/inc/python @@ -333,7 +333,7 @@ function pip_install { # packages like setuptools? local pip_version pip_version=$(python -c "import pip; \ - print(pip.__version__.strip('.')[0])") + print(pip.__version__.split('.')[0])") if (( pip_version<6 )); then die $LINENO "Currently installed pip version ${pip_version} does not" \ "meet minimum requirements (>=6)."