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/[email protected]/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

Reply via email to