[Pythonmac-SIG] Installing modules with py2app

Sridhar Ratnakumar sridhar.ratna at gmail.com
Tue Jan 18 18:42:32 CET 2011


On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro <alejandro at ti.com> wrote:
> Hello
>
> I have a script that installs Python, and then installs some modules with:
>
> subprocess.call("python setup.py install")
>
> The script works on Windows with py2exe, but gives me this error when using py2app:
>
> File setup.py
>    from distutils.core import setup
> ImportError: No module named distutils.core

Try debugging this issue by printing sys.path, and check if
distutils/core... exists in one of them:

    subprocess.call('python -c "import sys; print((sys.prefix, sys.path))"')

-srid


More information about the Pythonmac-SIG mailing list