一个都不能少,安装Flask需库: itsdangerous 、 Jinja2 和 Werkzeug、redispip install itsdangerous
PHP
0
安装Flask需库: itsdangerous 、 Jinja2 和 Werkzeug、redispip install itsdangerous
pip install Jinja2
pip install Werkzeug
pip install redis
pip install Flask
一个都不能少
Traceback (most recent call last):
File "E:\Python3.6\lib\site-packages\transformers\models\cpm\tokenization_cpm.py", line 92, in __init__
import jieba
ModuleNotFoundError: No module named 'jieba'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "http_service.py", line 101, in
tokenizer = CpmTokenizer(vocab_file="vocab/chinese_vocab.model")
File "E:\Python3.6\lib\site-packages\transformers\models\cpm\tokenization_cpm.py", line 95, in __init__
"You need to install jieba to use CpmTokenizer."
ModuleNotFoundError: You need to install jieba to use CpmTokenizer.See https://pypi.org/project/jieba/ for installation.
版权声明:除非特别标注原创,其它均来自互联网,转载时请以链接形式注明文章出处。