Unfortunately the trouble continues:
In a notebook I'm getting:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 2
1 #%matplotlib inline
----> 2 import matplotlib.pyplot as plt
3 import numpy as np
4 import csvModuleNotFoundError: No module named 'matplotlib' port installed | grep matplotlib py311-matplotlib-inline @0.1.7_0 (active) py313-matplotlib-inline @0.1.7_0 (active) $ pip install matplotlib Requirement already satisfied: matplotlib in /usr/local/lib/python3.11/site-packages (3.10.3) Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.2.1) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.11/site-packages (from matplotlib) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.11/site-packages (from matplotlib) (4.51.0) Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.4.5) Requirement already satisfied: numpy>=1.23 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.26.4) Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.11/site-packages (from matplotlib) (23.2) Requirement already satisfied: pillow>=8 in /usr/local/lib/python3.11/site-packages (from matplotlib) (10.3.0) Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.11/site-packages (from matplotlib) (2.9.0.post0) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0) $ pip3 install matplotlib Requirement already satisfied: matplotlib in /usr/local/lib/python3.11/site-packages (3.10.3) Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.2.1) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.11/site-packages (from matplotlib) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.11/site-packages (from matplotlib) (4.51.0) Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.4.5) Requirement already satisfied: numpy>=1.23 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.26.4) Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.11/site-packages (from matplotlib) (23.2) Requirement already satisfied: pillow>=8 in /usr/local/lib/python3.11/site-packages (from matplotlib) (10.3.0) Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.11/site-packages (from matplotlib) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.11/site-packages (from matplotlib) (2.9.0.post0) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0) $ Thanks for helping -- Christoph > Am 13.07.2025 um 09:42 schrieb Christoph Kukulies via macports-users > <[email protected]>: > > Addendum: > > $ port select --summary > Name Selected Options > ==== ======== ======= > clang none mp-clang-17 none > cython none cython27 none > docutils none py313-docutils none > httpx none py311-httpx py313-httpx none > ipython py313-ipython py311-ipython py313-ipython none > ipython3 py313-ipython py311-ipython py313-ipython none > jupyter py311-jupyter py311-jupyter py313-jupyter none > llvm none mp-llvm-17 mp-llvm-19 none > py-sympy py311-sympy py311-sympy none > pygments none py311-pygments py313-pygments none > python python311 python27 python27-apple python311 python312 > python313 python37 python38 python38-apple none > python2 none python27 python27-apple none > python3 python311 python311 python312 python313 python37 python38 > python38-apple none > > > >> Am 13.07.2025 um 09:40 schrieb Christoph Kukulies via macports-users >> <[email protected]>: >> >> I finally got everything tidied up, running Python 3.11 now. My `jupyter >> notebook` invoking problem (jupyter-notebook not found) got solved when I >> came to the conclusion that >> selecting jupyter to the right py311-jupyter and doing so for py-sympy. >> >> Thanks again to all. >> >> -- >> Christoph >> >> >> >>> Am 12.07.2025 um 11:26 schrieb Christoph Kukulies via macports-users >>> <[email protected]>: >>> >>> 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 >>>> <[email protected]>: >>>> >>>> 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 >>> >> >
signature.asc
Description: Message signed with OpenPGP
