一,报错信息:
ModuleNotFoundError: No module named 'jieba'
二,解决:
$ pip install jieba
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting jieba
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.2/19.2 MB 8.2 MB/s 0:00:02
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: jieba
Building wheel for jieba (pyproject.toml) ... done
Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314509 sha256=362bc86b3844431828b45bfd1efb1951b4d3c983cfe7f08e518abc6ce3730b2c
Stored in directory: /home/liuhongdi/.cache/pip/wheels/b2/9b/80/7537177f75993c29af08e0d00c753724c7f06c646352be50a3
Successfully built jieba
Installing collected packages: jieba
Successfully installed jieba-0.42.1