why i cannot import djang?

Gennadiy Zlobin gennad.zlobin at gmail.com
Tue Aug 16 18:36:03 CEST 2011


import sys
print sys.path # All directories where Python looks for packages


- Gennadiy <gennad.zlobin at gmail.com>


On Tue, Aug 16, 2011 at 11:12 PM, John Gordon <gordon at panix.com> wrote:

> In <mailman.66.1313506232.27778.python-list at python.org> smith jack <
> thinke365 at gmail.com> writes:
>
> > this package is already in the site-packages directory, but i cannot
> > import it , it's really confusing ...
>
> Is it in the site-packages directory for the particular version of
> python you're using?
>
> For example, my system has both python2.3 and python2.5 installed, and
> they both have their own site-packages directories:
>
> /usr/lib/python2.3/site-packages
> /usr/lib/python2.5/site-packages
>
> A package installed for only one version of python won't be importable
> if you're running a different python version.
>
> (If you don't know which version you're running, the version number
> should be displayed when you start up a python shell, like this:
>
>  command prompt> python
>  Python 2.3.4 (#1, Apr 15 2011, 17:38:51)
>  [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>>
>
> --
> John Gordon                   A is for Amy, who fell down the stairs
> gordon at panix.com              B is for Basil, assaulted by bears
>                                -- Edward Gorey, "The Gashlycrumb Tinies"
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110816/c10e3b67/attachment.html>


More information about the Python-list mailing list