<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks, Nils,<div class=""><br class=""></div><div class="">for clarifying. I understand.</div><span class=""><font face="Courier New" class="">$ port installed | grep '^[[:space:]]*py'<br class="">  py27-cairo @1.18.2_0+quartz+x11 (active)<br class="">  py27-cython @3.0.11_0 (active)<br class="">  py27-gobject @2.28.7_2+x11 (active)<br class="">  py27-numpy @1.16.6_4+gfortran+openblas (active)<br class="">  py27-oldest-supported-numpy @0.1_0 (active)<br class="">  py27-pygtk @2.24.0_6+x11 (active)<br class="">  py27-setuptools @44.1.1_0 (active)<br class="">  py311-numpy @1.26.4_3+gfortran+openblas (active)<br class="">  py311-oldest-supported-numpy @0.1_0 (active)<br class="">  py311-olefile @0.47_0 (active)<br class="">  py311-Pillow @9.5.0_1 (active)<br class="">  py311-pybind11 @2.13.6_0 (active)<br class="">  py311-tkinter @3.11.11_0 (active)<br class="">  py311-wxpython-4.0 @4.2.2_1 (active)<br class="">  py312-cairo @1.27.0_0+quartz+x11 (active)<br class="">  py312-gobject3 @3.46.0_0 (active)<br class="">  py312-mako @1.3.9_0 (active)<br class="">  py312-markdown @3.7_0 (active)<br class="">  py312-markupsafe @3.0.2_0 (active)<br class="">  py312-setuptools @77.0.3_0 (active)<br class="">  py313-cairo @1.27.0_0+quartz+x11 (active)<br class="">  py313-gdbm @3.13.2_0 (active)<br class="">  py313-gobject3 @3.50.0_0 (active)<br class="">  py313-meson @1.7.0_0 (active)<br class="">  py313-setuptools @75.8.0_0 (active)<br class="">  python2_select @0.1_0 (active)<br class="">  python3_select @0.1_0 (active)<br class="">  python3_select-38 @0.1_1 (active)<br class="">  python3_select-311 @0.1_1 (active)<br class="">  python3_select-312 @0.1_1 (active)<br class="">  python3_select-313 @0.1_1 (active)<br class="">  python27 @2.7.18_10+lto+optimizations (active)<br class="">  python37 @3.7.17_0+optimizations (active)<br class="">  python38 @3.8.20_0+optimizations (active)<br class="">  python311 @3.11.11_0+lto+optimizations (active)<br class="">  python312 @3.12.9_0+lto+optimizations (active)<br class="">  python313 @3.13.2_0+lto+optimizations (active)<br class="">  python_select @0.3_10 (active)<br class="">  python_select-38 @0.3_1 (active)<br class="">  python_select-311 @0.3_1 (active)<br class="">  python_select-312 @0.3_1 (active)<br class="">  python_select-313 @0.3_1 (active)<br class="">$ <br class=""></font><br class=""><div class="">So it looks like that for now. I did that port install py-jupyter. After that I did</div><div class=""><br class="webkit-block-placeholder"></div><span class=""><font face="Courier New" class="">sudo port select --set ipython py313-ipython<br class=""></font></span><span class=""><br class=""></span><span class="">But I still get:</span></span><div class=""><span class=""><span class=""><br class=""></span></span></div><span class=""><font face="Courier New" class="">$ which python3<br class="">/opt/local/bin/python3<br class="">$ python3<br class="">Python 3.11.11 (main, Dec  7 2024, 11:56:41) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin<br class="">Type "help", "copyright", "credits" or "license" for more information.<br class="">>>> quit()<br class="">$ which python<br class="">/opt/local/bin/python<br class="">$ python<br class="">Python 3.11.11 (main, Dec  7 2024, 11:56:41) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin<br class="">Type "help", "copyright", "credits" or "license" for more information.<br class="">>>> quit()<br class="">$ <br class=""></font></span><font face="Courier New" class=""><span class="">$ echo $PATH<br class=""></span><span class="">/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<br class=""></span></font><span class=""><br class="">--</span><div class=""><span class="">Christoph</span></div><div class=""><span class=""><br class=""></span><span class=""><blockquote type="cite" class="">Am 08.07.2025 um 18:43 schrieb Nils Breunese <<a href="mailto:breun@macports.org" class="">breun@macports.org</a>>:<br class=""><br class="">Christoph Kukulies via macports-users <<a href="mailto:macports-users@lists.macports.org" class="">macports-users@lists.macports.org</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">I just decided to totally remove all traces of anaconda3 from my macOS (11.7.10).<br class=""></blockquote><blockquote type="cite" class="">Now I'm left with all that got installed by macports through  the years since 2017.<br class=""><br class="">$ port list | grep \^pyt<br class="">(snip)<br class=""></blockquote><br class="">Please note that `port list` lists all ports that are available from MacPorts rather than the ports that are installed on your machine.<br class=""><br class="">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':<br class=""><br class="">    port installed | grep ‘^[[:space:]]*py'<br class=""><br class="">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`.<br class=""><br class=""><blockquote type="cite" class="">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 <br class="">Jupyter notebooks with the latest modules.<br class=""><br class="">There are currently no settings regarding Python in my bash environment.<br class=""><br class="">So how would I achieve this goal?<br class=""></blockquote><br class="">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.<br class=""><br class="">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.<br class=""><br class="">Nils.<br class=""></blockquote><br class=""></span></div></body></html>