Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal.cli.main import main File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py", line 60 sys.stderr.write(f"ERROR: {exc}") 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