Why doesn't import work?
Timothy Grant
timothy.grant at gmail.com
Mon Aug 4 18:45:57 EDT 2008
On Mon, Aug 4, 2008 at 3:34 PM, ssecorp <circularfunc at gmail.com> wrote:
> I have in Lib/site-packages a module named pdfminer. when I do import
> pdfminer it complains:
>
>>>> import pdfminer
>
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> import pdfminer
> ImportError: No module named pdfminer
>
>
> I created a file pdfminer.py and put it in site-packages and that
> works.
>
> so I apparently can't import a directory pdfminer. In the directory
> pdfminer there are 3 other directoriees and inside them python-files.
>
> how would I import them?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
set your PYTHONPATH environment to include the directory where your module is.
--
Stand Fast,
tjg. [Timothy Grant]
More information about the Python-list
mailing list