Christoph Kukulies via macports-users <[email protected]> wrote:

> I just decided to totally remove all traces of anaconda3 from my macOS 
> (11.7.10).
> Now I'm left with all that got installed by macports through  the years since 
> 2017.
> 
> $ port list | grep \^pyt
> (snip)

Please note that `port list` lists all ports that are available from MacPorts 
rather than the ports that are installed on your machine.

Use `port installed` to list the ports you have installed. You may want to run 
something like this to list the installed ports that start with ‘py':

    port installed | grep ‘^[[:space:]]*py'

In general you can remove ports that are not explicitly requested and no longer 
needed as a dependency of another port by running `sudo port reclaim`.

> Actually I don't want to tear down everything. I just would like to have a 
> stable and up to date Python3 installation to run 
> Jupyter notebooks with the latest modules.
> 
> There are currently no settings regarding Python in my bash environment.
> 
> So how would I achieve this goal?

It looks like the py-jupyter port installs Jupyter for the current latest 
Python version, so I think you’ll want to install that. It currently depends on 
py313-jupyter, but should be updated to more recent Python versions as they 
become available in MacPorts.

If you want to install Jupyter with a specific version of Python, you can also 
install a port like py313-jupyter explicitly, and then you’ll just have that 
version until you decide to remove it again.

Nils.

Reply via email to