导入lda python函数时出现异常错误

时间:2017-04-25 11:46:10

标签: python lda

导入lda模块时出现异常错误。我已经安装了lda及其依赖包:Numpy和pbr。我正在分享我得到的异常输出。

import lda

Traceback (most recent call last):

  File "<ipython-input-120-4b4ad2b47765>", line 1, in <module>
    import lda

  File "C:\Python27\Lib\site-packages\lda\__init__.py", line 10, in <module>
    __version__ = pbr.version.VersionInfo('lda').version_string()

  File "C:\Python27\Lib\site-packages\pbr\version.py", line 466, in version_string
    return self.semantic_version().brief_string()

  File "C:\Python27\Lib\site-packages\pbr\version.py", line 461, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()

  File "C:\Python27\Lib\site-packages\pbr\version.py", line 448, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)

  File "C:\Python27\Lib\site-packages\pbr\packaging.py", line 748, in get_version
    name=package_name))

Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name lda was given, but was not able to be found.

有人可以帮我吗?

0 个答案:

没有答案