Tidying up Python
Christoph Kukulies
kuku at kukulies.org
Sat Jul 12 09:26:04 UTC 2025
Thanks. Then I'm wondering why /opt/local/bin/jupyter*
is not being used.
$ ls /opt/local/bin/ju*
/opt/local/bin/jupyter-3.13
/opt/local/bin/jupyter-console-3.13
/opt/local/bin/jupyter-dejavu-3.13
/opt/local/bin/jupyter-events-3.13
/opt/local/bin/jupyter-execute-3.13
/opt/local/bin/jupyter-kernel-3.13
/opt/local/bin/jupyter-kernelspec-3.13
/opt/local/bin/jupyter-lab-3.13
/opt/local/bin/jupyter-labextension-3.13
/opt/local/bin/jupyter-labhub-3.13
/opt/local/bin/jupyter-migrate-3.13
/opt/local/bin/jupyter-nbconvert-3.13
/opt/local/bin/jupyter-notebook-3.13
/opt/local/bin/jupyter-run-3.13
/opt/local/bin/jupyter-server-3.13
/opt/local/bin/jupyter-troubleshoot-3.13
/opt/local/bin/jupyter-trust-3.13
All my troubles would have been blown away ( command jupyter-notebook not found) if the correct mechanism
would point to these programs.
If I run
$ jupyter 3.13 notebook
everything works, but this would be a crock.
--
Christoph
> Am 12.07.2025 um 10:24 schrieb Ryan Carsten Schmidt <ryandesign at macports.org>:
>
> On Jul 12, 2025, at 02:56, Christoph Kukulies wrote:
>>
>> I tried that:
>>
>> sudo port install py313-jupyter
>>
>> But /usr/local/bin/jupyter still points at python3.11
>>
>>
>> #!/usr/local/opt/python at 3.11/bin/python3.11
>> # -*- coding: utf-8 -*-
>> import re
>> import sys
>> from jupyter_core.command import main
>> if __name__ == '__main__':
>> sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
>> sys.exit(main())
>>
>> Where does /usr/local/bin/jupyter actually stem from?
>
> MacPorts uses /opt/local by default.
>
> /usr/local is for software you install manually. On Intel Macs, Homebrew takes over this location. Attempting to configure MacPorts to use this location will produce a loud warning explaining that we don't recommend using that location.
>
> Having Homebrew and MacPorts installed on the same computer will cause problems and is not recommended. Neither is installing software to /usr/local manually.
>
> See https://trac.macports.org/wiki/FAQ#usrlocal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250712/44c152d9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250712/44c152d9/attachment.sig>
More information about the macports-users
mailing list