ImportError: cannot import name 'main' from 'confuse' (C:\ProgramData\Anaconda3\lib\site-packages\confuse\__init__.py) 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