Installed Python 3.8.5, but my terminal still detects Python 2.7 (Catalina on mac)

1k views Asked by At

I was trying to install biopython with pip, but I get an error saying Python 3.6 or later is required, but 2.7 was detected. Weirdly though, when I look for my python version, it indicates I have 3.8.5 installed.

Should I move directories somehow? I just upgraded my Catalina version and did a thorough cleanup on my mac. Maybe I accidentally moved a file or two?

here's what my terminal looks like

Thank you!!!!!

1

There are 1 answers

0
Joseph Hansen On BEST ANSWER

You have to deconflict pip and make sure you're using the right one. There's a good answer on another Stack Overflow question.

The bottom line is, you might try:

which -a pip

to see all pip installations in your path.

You can use a specific version of pip like this:

python3 -m pip install something

or, I think you can also do:

pip3.6 install something