docs: update info on setuptools for Python 3.12

Also update info for `pip install --upgrade` given PEP 668
This commit is contained in:
Michael Cho 2024-02-23 09:32:42 -05:00
parent d0a3f09a14
commit aaadbd9695
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -27,7 +27,9 @@ $(brew --prefix python)/libexec/bin
## Setuptools, pip, etc.
The Python formulae install [pip](https://pip.pypa.io/) (as `pip3`) and [Setuptools](https://pypi.org/project/setuptools/).
The Python formulae install [pip](https://pip.pypa.io/) (as `pip3`). Python@3.11 and older Python formulae also install [Setuptools](https://pypi.org/project/setuptools/).
Starting with Python@3.12, the bundled Python packages should be updated by reinstalling brewed Python. For older Python formulae, they can be updated as described below.
Setuptools can be updated via `pip`, without having to reinstall brewed Python:
@ -49,7 +51,7 @@ The `site-packages` is a directory that contains Python modules, including bindi
$(brew --prefix)/lib/pythonX.Y/site-packages
```
So, for Python 3.y.z, you'll find it at `/usr/local/lib/python3.y/site-packages`.
So, for Python 3.y.z, you'll find it at `/usr/local/lib/python3.y/site-packages` on macOS Intel.
Python 3.y also searches for modules in: