用anaconda3在个人目录下配置的局部python3环境,在这个环境下用jieba进行分词。
报错:
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Dumping model to file cache /tmp/jieba.cache
Dump cache file failed.
Traceback (most recent call last):
File "/home/user_name/anaconda3/lib/python3.6/site-packages/jieba/__init__.py", line 152, in initialize
_replace_file(fpath, cache_file)
PermissionErro