Skip to content

Commit 857cbba

Browse files
committed
Changed pip2 installation method
As Ubuntu 20.04 has removed the python-pip package from its repositories
1 parent 6e08d2c commit 857cbba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

INSTALL.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ b_echo "################"
2222
echo ""
2323
r_echo "# Installing dependencies..."
2424
sudo apt-get update
25-
sudo apt-get install -y aha html2text libxml2-utils git unzip curl wget graphviz python-dev virtualenv
25+
sudo apt-get install -y aha html2text libxml2-utils git unzip curl wget graphviz python2 python2-dev python-setuptools
2626
echo ""
2727
r_echo "Utilities installed"
2828
echo ""
29-
if ! [[ $(command -v pip) ]]; then
30-
sudo apt-get install -y python-pip
29+
if ! [[ $(command -v pip2) ]]; then
30+
curl -s https://bootstrap.pypa.io/get-pip.py --output get-pip.py
31+
sudo python2 get-pip.py
32+
rm get-pip.py
3133
r_echo "pip installed"
3234
else
3335
r_echo "pip already installed"
3436
fi
35-
pip install virtualenv
37+
pip2 install virtualenv
3638

37-
virtualenv python_dep
39+
~/.local/bin/virtualenv -p python2 python_dep
3840
python_dep/bin/pip install androguard
3941
r_echo "Androguard installed"
4042
python_dep/bin/pip install --pre tlslite-ng

0 commit comments

Comments
 (0)