why i cannot import djang?

S

smith jack

this package is already in the site-packages directory, but i cannot
import it , it's really confusing ...
 
J

John Gordon

In said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top