Merge pull request #3080 from MycroftAI/bugfix/pip-install

Fix pip url for Python > 3.6
pull/3064/head
Åke 2022-02-28 21:54:32 +01:00 committed by GitHub
commit 012d5a517c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -460,10 +460,10 @@ function install_venv() {
$opt_python -m venv "${VIRTUALENV_ROOT}/" --without-pip
# Check if old script for python 3.6 is needed
if "${VIRTUALENV_ROOT}/bin/${opt_python}" --version > /dev/null | grep " 3.6"; then
if "${VIRTUALENV_ROOT}/bin/${opt_python}" --version | grep " 3.6"; then
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
else
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py"
fi
# Force version of pip for reproducability, but there is nothing special