I am trying to flesh-out a mental model of Python environments for my MacBook (MacOS Ventura 12.x). I am aware of venv (virtual environments) and that it serves to prevent updates from changing the venv python3 version and its venv modules (separate configuration management).
My Mac is outfitted with homebrew:
/usr/bin/python3
-V1 returns the Xcode Python version: 3.9.6python3 --version
orpython3 -V
returns "Python 3.10.8"brew list | grep python
returns:
python-packaging [email protected][email protected][email protected][email protected] mysql-connector-python
which python3
returns /usr/local/bin/python3 (Xcode python I presume)brew install python
returns: Warning: [email protected] 3.13.1 is already installed, it's just not linked. To link this version, run: brew link [email protected]
Does the Xcode python and homebrew python share the same environment / space or are they somehow separate? If they are separate, how is toggling between the two performed?
I ask because I would like to install the pyserial module so that I do not have to use it in a venv and use it with either the Xcode OR the homebrew python (preferable).