You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using gensim.__version__ to check on the version, the current code returns the global version number. This is caused by Line 10 in gensim.__init__.py: __version__ = __import__('pkg_resources').get_distribution('gensim').version .
In my situation, I have a newer version (0.13.0) installed in my system paths and I try to use an older version (0.10.3) of gensim in a project. I put the source code of the older version in the working directory of the project, so when I do import gensim, only the older version of gensim is imported.
However, though the local (older) gensim is imported, gensim.__version__ will still return the global version number, which is not correct in local configurations. Can the version number be hard-coded like what scikit-learn does here?
The text was updated successfully, but these errors were encountered:
While using
gensim.__version__
to check on the version, the current code returns the global version number. This is caused by Line 10 ingensim.__init__.py
:__version__ = __import__('pkg_resources').get_distribution('gensim').version
.In my situation, I have a newer version (0.13.0) installed in my system paths and I try to use an older version (0.10.3) of gensim in a project. I put the source code of the older version in the working directory of the project, so when I do
import gensim
, only the older version of gensim is imported.However, though the local (older) gensim is imported,
gensim.__version__
will still return the global version number, which is not correct in local configurations. Can the version number be hard-coded like whatscikit-learn
does here?The text was updated successfully, but these errors were encountered: