<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=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">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 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;" class="">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 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=""><br class=""></div><br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; 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="">Artemio Gonzalez Lopez<br class=""><a href="mailto:artemiog@mac.com" class="">artemiog@mac.com</a></div>
</div>
<br class=""></div></body></html>