pip3 binary missing, switch to use python -m pip

C7 jobs are failing with below error, details in bug:-
~~~
sudo: pip3: command not found
~~~

We are mixing installation of rpm and source at various places.
Switching to "python -m pip" as its more safer option when pip binary
is missing.

[1] https://bugs.launchpad.net/tripleo/+bug/1915932
Closes-Bug: #1915932

Change-Id: I3ac50a92ba14a1432f02463211caba87d08a51f1
This commit is contained in:
Sandeep Yadav 2021-02-18 13:12:45 +05:30
parent f1bc42d3fa
commit a452c68071
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ install_deps () {
if [ -z $centos7py3 ]; then
sudo $(package_manager) install $VIRTUALENV_PACKAGE
else
sudo pip3 install virtualenv
sudo $(python_cmd) -m pip install virtualenv
sudo $(package_manager) install gcc python3-devel
fi
check_python_module virtualenv &> /dev/null || \