textclf icon indicating copy to clipboard operation
textclf copied to clipboard

No module named 'textclf.utils'

Open renmada opened this issue 5 years ago • 2 comments

pip装的 (base) vocust001@ubuntu:~/anaconda3/lib/python3.7/site-packages$ textclf Traceback (most recent call last): File "/home/vocust001/anaconda3/bin/textclf", line 11, in load_entry_point('textclf==0.1.0', 'console_scripts', 'textclf')() File "/home/vocust001/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/vocust001/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2859, in load_entry_point return ep.load() File "/home/vocust001/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2450, in load return self.resolve() File "/home/vocust001/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2456, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/home/vocust001/anaconda3/lib/python3.7/site-packages/textclf-0.1.0-py3.7.egg/textclf/main.py", line 9, in File "/home/vocust001/anaconda3/lib/python3.7/site-packages/textclf-0.1.0-py3.7.egg/textclf/data/init.py", line 1, in # -- coding: utf-8 -- File "/home/vocust001/anaconda3/lib/python3.7/site-packages/textclf-0.1.0-py3.7.egg/textclf/data/raw.py", line 5, in File "/home/vocust001/anaconda3/lib/python3.7/site-packages/textclf-0.1.0-py3.7.egg/textclf/data/dictionary.py ModuleNotFoundError: No module named 'textclf.utils'

renmada avatar Apr 28 '20 05:04 renmada

解决了吗?我也是遇到 No module named 'textclf.utils'

qijunhui avatar Jul 02 '20 02:07 qijunhui

pip安装可能有点问题,可以尝试clone整个仓库,然后在项目目录下面运行 pip install -e .

luopeixiang avatar Jul 27 '20 04:07 luopeixiang