Thanks, Nils, for clarifying. I understand. $ port installed | grep '^[[:space:]]*py' py27-cairo @1.18.2_0+quartz+x11 (active) py27-cython @3.0.11_0 (active) py27-gobject @2.28.7_2+x11 (active) py27-numpy @1.16.6_4+gfortran+openblas (active) py27-oldest-supported-numpy @0.1_0 (active) py27-pygtk @2.24.0_6+x11 (active) py27-setuptools @44.1.1_0 (active) py311-numpy @1.26.4_3+gfortran+openblas (active) py311-oldest-supported-numpy @0.1_0 (active) py311-olefile @0.47_0 (active) py311-Pillow @9.5.0_1 (active) py311-pybind11 @2.13.6_0 (active) py311-tkinter @3.11.11_0 (active) py311-wxpython-4.0 @4.2.2_1 (active) py312-cairo @1.27.0_0+quartz+x11 (active) py312-gobject3 @3.46.0_0 (active) py312-mako @1.3.9_0 (active) py312-markdown @3.7_0 (active) py312-markupsafe @3.0.2_0 (active) py312-setuptools @77.0.3_0 (active) py313-cairo @1.27.0_0+quartz+x11 (active) py313-gdbm @3.13.2_0 (active) py313-gobject3 @3.50.0_0 (active) py313-meson @1.7.0_0 (active) py313-setuptools @75.8.0_0 (active) python2_select @0.1_0 (active) python3_select @0.1_0 (active) python3_select-38 @0.1_1 (active) python3_select-311 @0.1_1 (active) python3_select-312 @0.1_1 (active) python3_select-313 @0.1_1 (active) python27 @2.7.18_10+lto+optimizations (active) python37 @3.7.17_0+optimizations (active) python38 @3.8.20_0+optimizations (active) python311 @3.11.11_0+lto+optimizations (active) python312 @3.12.9_0+lto+optimizations (active) python313 @3.13.2_0+lto+optimizations (active) python_select @0.3_10 (active) python_select-38 @0.3_1 (active) python_select-311 @0.3_1 (active) python_select-312 @0.3_1 (active) python_select-313 @0.3_1 (active) $
So it looks like that for now. I did that port install py-jupyter. After that I did sudo port select --set ipython py313-ipython But I still get: $ which python3 /opt/local/bin/python3 $ python3 Python 3.11.11 (main, Dec 7 2024, 11:56:41) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> quit() $ which python /opt/local/bin/python $ python Python 3.11.11 (main, Dec 7 2024, 11:56:41) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> quit() $ $ echo $PATH /opt/local/bin:/opt/local/sbin:~/.local/bin:/Users/kuku/ImageMagick-7.0.10/bin:/Users/kuku/opt/gcc-arm-none-eabi-8-2018-q4-major/bin:/opt/local/bin:/opt/local/sbin:/Users/kuku/ImageMagick-7.0.10/bin:/Users/kuku/opt/gcc-arm-none-eabi-8-2018-q4-major/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS -- Christoph > Am 08.07.2025 um 18:43 schrieb Nils Breunese <[email protected]>: > > Christoph Kukulies via macports-users <[email protected]> > 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 >> (snip) > > Please note that `port list` lists all ports that are available from MacPorts > rather than the ports that are installed on your machine. > > Use `port installed` to list the ports you have installed. You may want to > run something like this to list the installed ports that start with ‘py': > > port installed | grep ‘^[[:space:]]*py' > > In general you can remove ports that are not explicitly requested and no > longer needed as a dependency of another port by running `sudo port reclaim`. > >> 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? > > It looks like the py-jupyter port installs Jupyter for the current latest > Python version, so I think you’ll want to install that. It currently depends > on py313-jupyter, but should be updated to more recent Python versions as > they become available in MacPorts. > > If you want to install Jupyter with a specific version of Python, you can > also install a port like py313-jupyter explicitly, and then you’ll just have > that version until you decide to remove it again. > > Nils.
signature.asc
Description: Message signed with OpenPGP
