I am trying to follow the lesson on the video below but I am finding that difficult.
I have a Mac book that has been pre-install by python 2.7 and then I downloaded python 3.8. I am able to use the python3 command to enter the python3 ‘interface’, but the problem is that after trying to follow the instructions of the video, and getting the exact error message about the path and trying to fix it with the instructions provided, I still get the message that pipenv is not recognized.
One thing I notice is that my shell is zsh as I always get a message from the terminal that zsh is now the new shell for OS Catalina but even when I tried changing the shell to bash, the problem still wasn’t solved. Here is
Look at the following pictures:
So zsh profile. Next, if I type pip --version, it should that the pip is installed in the python 2.7 version.
Next, if I type python --version it shows the python2 version, similarly for python3, so it recognizes that I have both and they can coexist without problem.
Now if after installing pipenv and trying to get the version, it will return an error message.
I have attached a picture of the file path:
One thing I notice is that the installing was done on the python 2.7 version and not 3.8. pipenv and other libs e.g. jupyter and such that I have tried to download also return similar error.
When I type this vi ~/.bash_profile, I got the following message:
So as a beginner everything seems so confusing and all over the place. I would really appreciate a step-by-step help about how to fix everything. Also, is it possible that when I open my terminal, it automatically runs python3 instead of python2?
I hope this question is detailed enough.