'import site' failed; use -v for traceback
Fredrik Lundh
fredrik at pythonware.com
Wed Jun 21 12:04:07 EDT 2006
huwjeffries at gmail.com wrote:
> Hi There,
>
> I've installed python2.4-dev on Unbuntu linux. When I run it, it gives
> an error:
>
> 'import site' failed; use -v for traceback
>
> (Get the same result if I uninstall it and install regular python2.4).
>
> Using -v traceback gives:
>
> 'import site' failed; traceback:
> ImportError: No module named site
>
> Python is installed in:
> /usr/bin/python
> /usr/lib/python2.4
>
> File listing of /usr/lib/python2.4:
where's the site.py file ?
> Bastion.py keyword.py SimpleHTTPServer.py
> bdb.py lib-dynload SimpleXMLRPCServer.py
> binhex.py lib-old site-packages
> bisect.py LICENSE.txt smtpd.py
> bsddb locale.py smtplib.py
</F>
More information about the Python-list
mailing list