Tom Gederberg wrote:
It appears that you can either install Python modules (py310-matplotlib,
py310-numpy, etc) either directly from MacPorts or you can install pip (for
example py30-pip) with MacPorts and then use pip to install the modules.
Is there a recommendation on which way to go?
* Thomas Gederberg:
> It appears that you can either install Python modules
> (py310-matplotlib, py310-numpy, etc) either directly from MacPorts or
> you can install pip (for example py30-pip) with MacPorts and then use
> pip to install the modules.
The issue with installing Python modules using
docker's a heavyweight solution.
Use Python's virtualenv.
Then you can pip install whatever and not corrupt your macports install.
On Tue, Dec 6, 2022 at 7:27 AM David Herron wrote:
> Let me recommend Docker. You can use the Python base image, to select
> your preferred Python version, and
Let me recommend Docker. You can use the Python base image, to select your
preferred Python version, and then run pip or pip3 (as appropriate) in the
Dockerfile. This way installed dependencies are neatly encapsulated, they
do not pollute your host environment, and you have documentation of how
Generally, use MacPorts for a newer python/pip and use that pip to
install subsequent modules.
There are a few cases where you may benefit from MacPorts' pre-compiled
c modules, however you won't be able to version-pin dependencies
(MacPorts doesn't appear to have this concept).
On
Not a heavy user of python, but a "quick and dirty" answer would be: installing
and updating via pip might give you the latest version faster, but you need to
remember to check for updates via pip. Installing via MacPorts would allow you
to update python packages together with everything else
It appears that you can either install Python modules (py310-matplotlib,
py310-numpy, etc) either directly from MacPorts or you can install pip (for
example py30-pip) with MacPorts and then use pip to install the modules.
Is there a recommendation on which way to go?
Tom Gederberg