I'm having a bit of a hard time installing PIP on a debian linux machine. This is the code I am using in a shell script:
# Install setuptools
python -c 'import setuptools' > /dev/null 2>&1
if [[ $? != 0 ]] ; then
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | sudo python
if [[ $? != 0 ]] ; then
echo "Unable to install setuptools" >> /dev/stderr
# exit 1
fi
fi
# Install PIP
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
# Install packages
pip install supervisor --pre
pip install uwsgi
pip install virtualenv
However in my log I get the following messages showing that PIP didnt install correctly:
/root/StackScript: line 42: pip: command not found
/root/StackScript: line 43: pip: command not found
/root/StackScript: line 44: pip: command not found
Could anyone help me understand where I have gone wrong please?