<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Oct 2021, at 9:18 pm, Artemio González López via macports-users <<a href="mailto:macports-users@lists.macports.org" class="">macports-users@lists.macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><blockquote type="cite" class=""><div class=""><br class="Apple-interchange-newline">On Oct 4, 2021, at 4:24 PM, Giuseppe 'ferdy' Miceli <<a href="mailto:ferdy@ferdy.it" class="">ferdy@ferdy.it</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">ciao artemio,</span><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""><div class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">Hi, Giuseppe,</div></div></blockquote><div class=""><br class=""></div><omissis><br class=""><div class=""><br class=""></div><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">So my questions are:</div><div class=""><br class=""></div><div class="">1. Should I activate python39 and decativate python37 before installing the 3.9 versions fo numpy, scipy and matplotlib?</div></div></blockquote><div class=""><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);">I would daresay to remove everything (—force option would be handy) and then start over again from scratch :-)</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">Can both be active at the same time after that, or should I keep 3.7 inactive for good (or unistall it)?</div></div></div></blockquote><div class=""><br class=""></div><div class="">you can have python37 and python39 both installed and active and choose with port select which one to use as python3 default version.</div><div class=""><br class=""></div></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><div class=""><i class="">wabi:macports-ports admin$ port installed python3\*</i></div></div></div><div class=""><div class=""><div class=""><i class="">The following ports are currently installed:</i></div></div></div><div class=""><div class=""><div class=""><i class="">  python3_select @0.0_2 (active)</i></div></div></div><div class=""><div class=""><div class=""><i class="">  python37 @3.7.12_0+optimizations (active)</i></div></div></div><div class=""><div class=""><div class=""><i class="">  python39 @3.9.7_0+optimizations (active)</i></div></div></div><div class=""><div class=""><div class=""><i class="">wabi:macports-ports admin$ port select --list python3</i></div></div></div><div class=""><div class=""><div class=""><i class="">Available versions for python3:</i></div></div></div><div class=""><div class=""><div class=""><i class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>none</i></div></div></div><div class=""><div class=""><div class=""><i class=""><span class="Apple-tab-span" style="white-space: pre;">  </span>python37</i></div></div></div><div class=""><div class=""><div class=""><i class=""><span class="Apple-tab-span" style="white-space: pre;">      </span>python38-apple</i></div></div></div><div class=""><div class=""><div class=""><i class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>python39 (active)</i></div></div></div><div class=""><div class=""><div class=""><i class="">wabi:macports-ports admin$</i></div></div></div></blockquote><div class=""><div class=""><br class=""></div><div class="">nevertheless imho, being your first try with macports, i would suggest to choose one version and have it working with a specific version.</div><div class="">you will always have time to experimenting with more than one version.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">2. Should I install (say) py-numpy or more specifically py39-numpy?</div></div></div></blockquote><div class=""><br class=""></div><div class="">from macports perspective that is the same port (more specifically py39-numpy is a subport of py-numpy.</div><div class="">thus if you install py-numpy you shall end up with py39-numpy.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">3. Is it OK if the 3.7 versions of the py-* package are active throughout this installation process (and afterwards), or should I also deactivate them?</div></div></div></blockquote><div class=""><br class=""></div>as i mentioned before i would deactivate/uninstall the python37 versions just to be double sure.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">4. Will "jupyter notebook” automatically find the scientific libraries I’m going to install, or should I do something else (like, e.g., create an environment)?</div></div></div></blockquote><div class=""><br class=""></div><div class="">apologies, on this one i have to surrender since in this case it’s me not coming from math :-)</div><div class=""><br class=""></div>my experience with macports makes me think it should work out of the box, yet that is really above my paygrade. sorry</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">Again, I apologize for my ignorance (I’m coming from Mathematica, but I would like to try python out because many of my colleagues now use it).</div></div></div></blockquote><div class=""><br class=""></div><div class="">absolutely no need to apologize! i am sure if i were coming with silly questions on math you would do your best to help me out ;-)</div><div class=""><br class=""></div><div class="">cheers,</div><div class="">—</div><div class="">ferdy</div></div></div></div></blockquote><br class=""></div><div class="">Ciao Giuseppe,</div><div class=""><br class=""></div><div class="">I am happy to report that after following your advice everything worked as advertised. I only experienced a very minor glitch, namely that for some reason (probably a minor bug?) the /opt/local/Library/Frameworks/Versions/3.9/bin directory where jupyter resides is not in the $PATH, so you must add it by hand if you want to invoke (say) jupyter with just its name.</div></div></div></div></blockquote><div><br class=""></div><div>No, that is not a bug but intentional. it is that way because in principle you could have multiple versions installed, for different python versions. For that reason one specific python version cannot place its binaries under the default ${prefix}/bin with the nominal names, as that would prevent others from then being installed.</div><div><br class=""></div><div>The port does in fact install binaries, but they are suffixed with the python version</div><div><br class=""></div><div><div>Oberon ~/Projects/MacPorts/ports > port contents py39-jupyter_client | grep bin</div><div>  /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-kernel</div><div>  /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-kernelspec</div><div>  /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-run</div><div>  /opt/local/bin/jupyter-kernel-3.9</div><div>  /opt/local/bin/jupyter-kernelspec-3.9</div><div>  /opt/local/bin/jupyter-run-3.9</div><div><br class=""></div><div><br class=""></div><div>so to run a specific version (for a given python version) run XYZ-3.9 etc.</div><div><br class=""></div><div>Chris</div><div><br class=""></div></div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><br class=""></div><div class="">Thanks a lot for your patience and help!</div><div class=""><br class=""></div><div class="">Artemio</div></div></div><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Artemio Gonzalez Lopez<br class=""><a href="mailto:artemiog@mac.com" class="">artemiog@mac.com</a></div></div></div></blockquote></div><br class=""></body></html>