1、问题描述:
在使用pip安装transformers时,报如下错误:
pip install transformers
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyYAML-3.12-py3.6.egg-info/PKG-INFO'
Consider using the `--user` option or check the permissions.
2、解决方法:
在安装语句后面添加--user即可:
pip install transformer --user