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?

--
Christoph

> Am 12.07.2025 um 08:00 schrieb Nils Breunese <[email protected] 
> <mailto:[email protected]>>:
> 
> Christoph Kukulies via macports-users <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> An attempt to install jupyter now under python313 shows that there are 3.11 
>> dependencies:
>> 
>> pip3 install jupyter
>> Requirement already satisfied: jupyter in 
>> /usr/local/lib/python3.11/site-packages (1.1.1)
>> 
>> and lots more of references to python 3.11
> 
> If you install Jupyter via MacPorts instead of pip, then MacPorts will also 
> take care of Jupyter’s dependencies and you can manage everything through 
> MacPorts. If you start adding Python stuff via pip next to Python ports from 
> MacPorts, you’ll need to make sure yourself that Python versions are aligned.
> 
> If you want to let MacPorts manage Jupyter, I’d first remove the Jupyter 
> install via pip to avoid confusion.
> 
> Then, if you want to install Jupyter for Python 3.13 via MacPorts:
> 
>     sudo port install py313-jupyter
> 
> (There are also ports for Jupyter for older Python versions.)
> 
> You could also install a port for Jupyter for 
> whatever-the-latest-supported-Python-currently-is if that’s what you prefer:
> 
>     sudo port install py-jupyter
> 
> Nils.
> <signature.asc><signature.asc>

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to