How to launch existing packages after upgrading python3

51 views Asked by At

I use macOs Sierra version 10.12.6 on my MacBook Air, and python 3.7 and pipenv, Today I ran brew upgrade and updated Xcode Command Line Tools from App store. After that I found out that the python is upgraded to 3.8 version. My problem is that when I want to go in virtual environment writing pipenv shell, this message is shown:

-bash: /usr/local/bin/pipenv: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory

I had this problem for using my favorite python IDE, spyder, too, and reinstalled it by pip3 install spyder and then it was launched, but I'm afraid to reinstall pipenv because I have important projects kept in virtual environment made using pipenv.

I'd like to know what is the best solution for this situation?

0

There are 0 answers