update
This commit is contained in:
@@ -10,8 +10,10 @@ printm(){
|
|||||||
find_python(){
|
find_python(){
|
||||||
if $(python --version); then
|
if $(python --version); then
|
||||||
python=$(which python)
|
python=$(which python)
|
||||||
|
pip="pip"
|
||||||
else
|
else
|
||||||
python=$(which python3)
|
python=$(which python3)
|
||||||
|
pip="pip3"
|
||||||
fi
|
fi
|
||||||
echo "$python"
|
echo "$python"
|
||||||
}
|
}
|
||||||
@@ -32,7 +34,7 @@ check_and_install_pip(){
|
|||||||
pip=$(${python} -m pip --version 2>&1);
|
pip=$(${python} -m pip --version 2>&1);
|
||||||
if [[ "$pip" == *"No"* ]]; then
|
if [[ "$pip" == *"No"* ]]; then
|
||||||
echo "- Pip is not installed, installing it."
|
echo "- Pip is not installed, installing it."
|
||||||
sudo apt install python-pip
|
sudo apt install python-$pip
|
||||||
else
|
else
|
||||||
print_green "+ Found $pip"
|
print_green "+ Found $pip"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user