<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">I don't know how all these python versions got installed. They all may have come over the years </div><div class="">and I didn't do anything special to keep them.</div><div class=""><br class=""></div><span class=""><font face="Courier New" class="">$ port rdependents<br class="">The following ports are dependent on opencascade:<br class=""> kicad<br class="">$ sudo port reclaim<br class="">Password:<br class="">---> Checking for unnecessary unrequested ports<br class="">Found no unrequested ports without requested dependents.<br class="">---> Checking for inactive ports<br class="">Found no inactive ports.<br class="">---> Building list of distfiles still in use<br class="">---> Searching for unused distfiles <br class="">No unused files found.<br class="">---> Build location: /opt/local/var/macports/build<br class="">---> Scanning binaries for linking errors<br class="">---> No broken files found. <br class="">---> No broken ports found.</font><br class=""><br class="">Two questions:</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">How do I select python-313 to python and python3? Something like</span></div><div class=""><span class=""><br class=""></span></div><span class=""><font face="Courier New" class="">sudo port select --set python py313-python</font><br class=""><br class="">doesn't seem to work.</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">ipython (which I already had set with the command below is at 3.13.2).</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">--</span></div><div class=""><span class="">Christoph</span></div><div class=""><span class=""><br class=""><blockquote type="cite" class="">Am 09.07.2025 um 15:42 schrieb Bill Cole <<a href="mailto:macportsusers-20171215@billmail.scconsult.com" class="">macportsusers-20171215@billmail.scconsult.com</a>>:<br class=""><br class="">On 2025-07-09 at 08:30:18 UTC-0400 (Wed, 9 Jul 2025 14:30:18 +0200)<br class="">Christoph Kukulies via macports-users <<a href="mailto:kuku@kukulies.org" class="">kuku@kukulies.org</a>><br class="">is rumored to have said:<br class=""><br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Thanks, Nils,<br class=""><br class="">for clarifying. I understand.<br 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=""></blockquote><br class="">You should figure out *why* you have 4 different Pythons installed and remove those that you don't need. You may need to reinstall some non-python dependents with an explicit python version variant. It is likely that you can get everything consolidated under one version (or maybe 2, if you really do need the 2.7 stuff.) 'port rdepedents' is useful for finding the ports to target.<br class=""><br class=""><br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">So it looks like that for now. I did that port install py-jupyter. After that I did<br class=""><br class="">sudo port select --set ipython py313-ipython<br class=""></blockquote><br class="">That only affects the 'ipython' command. You need to fix the commands you actually use. Based on the installed list above, I don't see why the command you used didn't just fail.<br class=""><br class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="">But I still get:<br class=""><br 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=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">quit()<br class=""></blockquote></blockquote></blockquote>$ 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=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">quit()<br class=""></blockquote></blockquote></blockquote></blockquote><br class="">To make the python and python3 commands point to python313, you need to use 'port select' for each of them.<br class=""><br class=""><br class=""><br class="">-- <br class="">Bill Cole<br class="">bill@scconsult.com or billcole@apache.org<br class="">(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com addresses)<br class="">Not Currently Available For Hire<br class=""></blockquote><br class=""></span></div></body></html>