Relative Content

Tag Archive for pythonpython-3.xmacosinstallation

How to install packages with pip3 to correct interpreter?

I was using pip3 to install some packages in my Mac, and found out that there are two different version of python in my laptop. One is install with Homebrew, and another is the global interpreter. The python version install with Homebrew was python 3.11.8. However, the global python version in my Mac was 3.9.6. When typing which python3 in the terminal, I get /usr/bin/python3, and python3 --version gave Python 3.9.6. However, when typing which python3.11, I got /opt/homebrew/bin/python3.11, and python3.11 --version gave Python 3.11.8, which is the interpreter I would like to use.