我想使用python软件包BigARTM构建主题模型。为什么我不能在Windows机器上安装软件包?我正在使用Anaconda 3和Python 3.7。
一位同事从github实例(https://github.com/bigartm/bigartm)下载了BigARTM的主分支,并为我重新编译了它。我已经根据开发人员的建议手动设置了环境变量,以便它可以与Anaconda 3和Jupyter笔记本(http://docs.bigartm.org/en/latest/installation/windows.html)一起使用
当我运行命令“ import artm”时,仍然出现以下错误。
import artm
我收到此追溯错误:
import artm
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-513ce4935e65> in <module>
----> 1 import artm
~\AppData\Local\Continuum\anaconda3\lib\site-packages\bigartm-0.10.0-py3.7.egg\artm\__init__.py in <module>
1 # Copyright 2017, Additive Regularization of Topic Models.
2
----> 3 from .artm_model import ARTM, version, load_artm_model
4 from .lda_model import LDA
5 from .hierarchy_utils import hARTM
~\AppData\Local\Continuum\anaconda3\lib\site-packages\bigartm-0.10.0-py3.7.egg\artm\artm_model.py in <module>
19 import tqdm
20
---> 21 from . import wrapper
22 from .wrapper import constants as const
23 from .wrapper import messages_pb2 as messages
~\AppData\Local\Continuum\anaconda3\lib\site-packages\bigartm-0.10.0-py3.7.egg\artm\wrapper\__init__.py in <module>
5 from . import exceptions
6 from . import constants
----> 7 from . import messages_pb2 as messages
8
9 from .api import LibArtm
ImportError: cannot import name 'messages_pb2' from 'artm.wrapper' (C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\bigartm-0.10.0-py3.7.egg\artm\wrapper\__init__.py)