Tidying up Python
Steven Smith
steve.t.smith at gmail.com
Thu Jul 17 11:51:19 UTC 2025
You want the command port installed, not port list, to see everything that you’ve installed before.
If you really do have this cold versions installed, it’s also likely that you also have zillions of old Python version packages installed too:
> port installed py*
Here’s a gist I use to migrate to new versions of Python:
https://gist.github.com/essandess/29067dc7b50536aa0a1f9f34fece73a7
To get an up-to-date Python install, choose the latest version whose packages both exist and work, likely python313:
> $ port list py3*-jupyter
> py39-jupyter @1.0.0 python/py-jupyter
> py310-jupyter @1.0.0 python/py-jupyter
> py311-jupyter @1.0.0 python/py-jupyter
> py312-jupyter @1.0.0 python/py-jupyter
> py313-jupyter @1.0.0 python/py-jupyter
Then:
> sudo port -pNc install py313-jupyter
> port select --set jupyter py313-jupyter
> On Jul 8, 2025, at 4:28 AM, Christoph Kukulies via macports-users <macports-users at lists.macports.org> wrote:
>
> I just decided to totally remove all traces of anaconda3 from my macOS (11.7.10).
> Now I'm left with all that got installed by macports through the years since 2017.
>
> $ port list | grep \^pyt
> python-mode.el @1.0 lang/python-mode.el
> python26 @2.6.9 lang/python26
> python27 @2.7.18 lang/python27
> python310 @3.10.18 lang/python310
> python27-bootstrap @2.7.18 lang/python27
> python311 @3.11.13 lang/python311
> python312 @3.12.11 lang/python312
> python313 @3.13.5 lang/python313
> python313-devel @3.13.0rc3 lang/python313-devel
> python314-devel @3.14.0b3 lang/python314-devel
> python32 @3.2.6 lang/python32
> python33 @3.3.7 lang/python33
> python313-freethreading @3.13.5 lang/python313
> python34 @3.4.10 lang/python34
> python35 @3.5.10 lang/python35
> python36 @3.6.15 lang/python36
> python37 @3.7.17 lang/python37
> python38 @3.8.20 lang/python38
> python39 @3.9.23 lang/python39
> pytest_select @0.1 python/pytest_select
> python-language-server_select @0.1 python/python-language-server_select
> python-lsp-server_select @0.1 python/python-lsp-server_select
> pythia @8.303 science/pythia
> python2_select @0.1 sysutils/python2_select
> python3_select @0.1 sysutils/python3_select
> python_select @0.3 sysutils/python_select
> python3_select-38 @0.1 sysutils/python3_select
> python3_select-39 @0.1 sysutils/python3_select
> python3_select-310 @0.1 sysutils/python3_select
> python3_select-311 @0.1 sysutils/python3_select
> python3_select-312 @0.1 sysutils/python3_select
> python3_select-313 @0.1 sysutils/python3_select
> python3_select-314 @0.1 sysutils/python3_select
> python_select-38 @0.3 sysutils/python_select
> python_select-39 @0.3 sysutils/python_select
> python_select-310 @0.3 sysutils/python_select
> python_select-311 @0.3 sysutils/python_select
> python_select-312 @0.3 sysutils/python_select
> python_select-313 @0.3 sysutils/python_select
> python_select-314 @0.3 sysutils/python_select
> $
>
> Actually I don't want to tear down everything. I just would like to have a stable and up to date Python3 installation to run
> Jupyter notebooks with the latest modules.
>
> There are currently no settings regarding Python in my bash environment.
>
> So how would I achieve this goal?
>
> --
> Christoph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250717/193aecd5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4423 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250717/193aecd5/attachment.bin>
More information about the macports-users
mailing list