I installed pipenv
using
$ pip3 install pipenv
which gives me the error ImportError: cannot import name 'main'
in order to solve this error I followed these instruction
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
now pip3
command is working on terminal.
now I install pipenv
using pip3 install pipenv
it installed succesfully but when i tried to execute pipenv
on termnal it gave me
pipenv: command not found
at this point pip3
also gives ImportError: cannot import name 'main' error
in order to solve this i followed these instruction
PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin"
PATH="$PATH:$PYTHON_BIN_PATH"
at this, point pipenv
is working but pip3
is not working .
How can I make both pip3
and pipenv
work at the same time?
Also, it seems that I have messed up my pipenv setting now the virtual environment is created by default at /home/sysadmin
instead of the location i used to create virtual environment /home/sysadmin/Desktop/helloworld