Mac – Move python modules from one installation to another

macportspython

I have several versions of Python installed, some through MacPorts and some directly via the python.org installers. I have modules installed through MacPorts and via PyPI, for the same Python version (3.2.3), but there are no ports for some of the PyPI modules I'd like to use. I tried just copying the files from one site-packages directory to another, but it didn't work. Is there a way to create one "true" centralized location that will accept packages from both MacPorts and pip/easy_install?

Best Answer

Just use easy_install or pip from macports ie sudo port install py32-pip This will put pip in /opt/local/bin I think and use this pip not the Apple supplied one.