0

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:

  1. /usr/bin/python3 -V1 returns the Xcode Python version: 3.9.6
  2. python3 --version or python3 -V returns "Python 3.10.8"
  3. brew list | grep python returns:

python-packaging [email protected][email protected][email protected][email protected] mysql-connector-python

  1. which python3 returns /usr/local/bin/python3 (Xcode python I presume)

  2. 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).

    0

    You must log in to answer this question.

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.