ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd
:\\installed\\programdata\\anaconda3\\lib\\site-packages\\~andas\\io\\msgpack\\_
packer.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
解决办法
pip install kashgari --user administrator
问题解决
验证结果
>>> import kashgari as k
C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\gensim\sim
larities\__init__.py:15: UserWarning: The gensim.similarities.levenshtein submo
ule is disabled, because the optional Levenshtein package <https://pypi.org/pro
ect/python-Levenshtein/> is unavailable. Install Levenhstein (e.g. `pip install
python-Levenshtein`) to suppress this warning.
warnings.warn(msg)
>>> print(t.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 't' is not defined
>>> print(k.__version__)
2.0.1
>>>