ImportError: cannot import name 'Simhash'
wangwanyou opened this issue · comments
[root@test simhash]# py
Python 3.5.4 (default, Jul 10 2018, 23:55:37)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
from simhash import Simhash
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'Simhash'
import simhash
sh=simhash.Simhash()
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'simhash' has no attribute 'Simhash'
Maybe try to uninstall simhash and re-install? Are you installing some other library previously?
you sure that you installed it by "pip install simhash" ????
Maybe try to uninstall simhash and re-install? Are you installing some other library previously?
[root@test simhash]# py
Python 3.5.4 (default, Jul 10 2018, 23:55:37)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.from simhash import Simhash
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'Simhash'
import simhash
sh=simhash.Simhash()
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'simhash' has no attribute 'Simhash'
your python file running name is simhash.py?