Recommendation for installing Python modules: pip or Macports
Jeremy Lavergne
snc at macports.org
Tue Dec 6 14:28:39 UTC 2022
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 12/6/22 08:54, Mircea Trandafir wrote:
> 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 when you do your regular (I suppose you do
> that, right?) “port selfupdate”. Also, when updates are pushed via
> MacPorts they are typically tested and should work…
>
> --
> Mircea Trandafir
> Senior researcher
> Rockwool Foundation Research Unit
> Ny Kongensgade 6
> DK 1472, Copenhagen
> Denmark
> Web: http://www.mirceatrandafir.com
>
>> On 6 Dec 2022, at 1.53 PM, Thomas Gederberg <tgederberg at sbcglobal.net>
>> 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?
>>
>> Tom Gederberg
>
More information about the macports-users
mailing list