[TOOLS] Check for easy_install.

This commit is contained in:
Foxlet 2019-06-08 02:29:23 -04:00
parent 9b18ef2878
commit 731a0d1b55
1 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,12 @@ SCRIPTDIR="$(dirname "$0")";
cd $SCRIPTDIR
initpip() {
sudo easy_install pip
if [ -x "$(command -v easy_install)" ]; then
sudo easy_install pip
else
echo "Please install python3-pip or easy_install before continuing."
exit 1;
fi
pip install -r requirements.txt --user
}