fix python installation
This commit is contained in:
10
install.sh
10
install.sh
@@ -10,14 +10,14 @@ welcome(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
find_python(){
|
find_python(){
|
||||||
if [[ $(python --version) ]]; then
|
if [[ $(python3 --version) ]]; then
|
||||||
python=$(which python)
|
|
||||||
pip="python-pip"
|
|
||||||
pip_run='pip'
|
|
||||||
else
|
|
||||||
python=$(which python3)
|
python=$(which python3)
|
||||||
pip="python3-pip"
|
pip="python3-pip"
|
||||||
pip_run='pip3'
|
pip_run='pip3'
|
||||||
|
else
|
||||||
|
python=$(which python)
|
||||||
|
pip="python-pip"
|
||||||
|
pip_run='pip'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$python" == *"python"* ]]; then
|
if [[ "$python" == *"python"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user