Hello,
thanks. I solved the problem. I'm not allowed to include the
sitepackage/numpy folder in the pythonpath.
BUT I don't understand when I need to copy the microsoft visual c
runtime dll as described on your tutorial website. The example
works fine without the dll in the dist folder.
Best regards,
katja
Am 01.09.2011 08:49, schrieb katja wegner:
> Hello,
>
> I installed py2exe for Python 2.7 but the import doesn't work.
>
> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32
> bit (Intel)] on win
> 32
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import py2exe
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "C:\Python27\lib\site-packages\py2exe\__init__.py", line
> 67, in <module>
> import distutils.dist, distutils.core, distutils.command,
> build_exe, sys
> File
> "C:\Python27\Lib\site-packages\numpy\distutils\__init__.py",
> line 7, in <
> module>
> import ccompiler
> File
> "C:\Python27\Lib\site-packages\numpy\distutils\ccompiler.py",
> line 8, in
> <module>
> from distutils import ccompiler
> ImportError: cannot import name ccompiler
>
> Thanks a lot for any help,
> Katja
|