diff --git a/gensim/__init__.py b/gensim/__init__.py index 0e3f3db720..7ccf9d307f 100644 --- a/gensim/__init__.py +++ b/gensim/__init__.py @@ -6,11 +6,7 @@ from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization import logging -try: - __version__ = __import__('pkg_resources').get_distribution('gensim').version -except: - __version__ = '?' - +__version__ = '1.0.1' class NullHandler(logging.Handler): """For python versions <= 2.6; same as `logging.NullHandler` in 2.7.""" @@ -19,4 +15,4 @@ def emit(self, record): logger = logging.getLogger('gensim') if len(logger.handlers) == 0: # To ensure reload() doesn't add another one - logger.addHandler(NullHandler()) \ No newline at end of file + logger.addHandler(NullHandler())