can not import hashlib

Xia, Zhen zhxia at njnet.edu.cn
Wed Sep 15 07:36:40 CEST 2010


Your python is compiled without md5. Maybe your system misses some libraries and you have to re-compile the python.


On Wed, 15 Sep 2010 11:03:40 +0800
ch huang <justlooks at gmail.com> wrote:

> i have a big problem,here is
> and any can help me?
> 
> Python 2.6.5 (r265:79063, Apr  1 2010, 05:22:20)
> [GCC 4.4.3 20100316 (prerelease)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import hashlib
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/hashlib.py", line 136, in <module>
>     md5 = __get_builtin_constructor('md5')
>   File "/usr/lib/python2.6/hashlib.py", line 63, in
> __get_builtin_constructor
>     import _md5
> ImportError: No module named _md5
> 




More information about the Python-list mailing list