Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11574
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: why i cannot import djang? |
| Date | Tue, 16 Aug 2011 16:12:09 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 31 |
| Message-ID | <j2e4sp$knh$1@reader1.panix.com> (permalink) |
| References | <mailman.66.1313506232.27778.python-list@python.org> |
| NNTP-Posting-Host | panix1.panix.com |
| X-Trace | reader1.panix.com 1313511129 21233 166.84.1.1 (16 Aug 2011 16:12:09 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 16 Aug 2011 16:12:09 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:11574 |
Show key headers only | View raw
In <mailman.66.1313506232.27778.python-list@python.org> smith jack <thinke365@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@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
why i cannot import djang? smith jack <thinke365@gmail.com> - 2011-08-16 22:50 +0800 Re: why i cannot import djang? John Gordon <gordon@panix.com> - 2011-08-16 16:12 +0000 Re: why i cannot import djang? Tim Roberts <timr@probo.com> - 2011-08-16 17:41 -0700
csiph-web