I have had a macbook for half a year and I have been very satisfied with macports
for all of my linux-y needs. I installed python-2.7 through macports and have been also installing all packages (e.g., numpy, matplotlib) through macports as well. Today, though, there was a package I needed (fcm
) which was not available through macports; I learned about pip
, found that package through pip and installed it. Unfortunately, neither pip ("pip freeze
") nor macports ("port installed
") knows about the python packages that the other has installed.
I made a rash decision and: uninstalled all macports packages, installed python27 and py27-pip through macports, and then proceeded to install all python packages through pip. This worked fine, until I tried to reinstall some (non-python) macports packages which depend on python (e.g., inkscape). Macports immediately recognized the dependency, tried to install, e.g., py27-numpy, and then failed because it "already exists and does not belong to a registered port." I guess I could give up on the macports python version altogether, use the native MacOS version along with the native pip, but then macports will still try to install its own version of python when it runs into a dependency (or can I somehow tell it to use the native python?).
Is there a best way to use python on a mac?