pip”, line 9, in module from pip import main ImportError: cannot import name main

Published: 06 April 2019
on channel: RANDOM NEURAL MONK
1,060
6

File “/usr/bin/pip”, line 9, in module from pip import main ImportError: cannot import name main






https://stackoverflow.com/questions/4...


commands
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" (please type two angle brackets here) ~/.profile
gedit ~/.bashrc
source ~/.profile
whereis pip


******importan works only in python3******