Traceback (most recent call last): File "/usr/local/bin/pip", line 11, in <module> code example

Example 1: Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main

python -m pip uninstall pip
apt remove python-pip
whereis pip

Example 2: Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main

wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
pip install --user pipenv
pip3 install --user pipenv
echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile
source ~/.profile
whereis pip