Python wrong install dir

Hauke Fuhrmann hauke.fuhrmann at
Fri Mar 4 01:48:41 PST 2011

Hi there,

without any Python knowledge I try to run some setup script from some
Python project like

$sudo python install

I have Python 2.4, 2.5 and 2.6 installed via Macports, as well as
py26-setuptools and py26-distutils-extra.

"python --version" results version 2.6

I get this error message:


running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory:

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:


This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir


I think the directory


actually is invalid as I found Python 2.6 installed in


Is this correct? How do I change this? I don't know what is meant by
"choose a different installation directory".


More information about the macports-users mailing list