Python 安装chatterbot时获取“EnvironmentError:[Errno 13]权限被拒绝”

Python 安装chatterbot时获取“EnvironmentError:[Errno 13]权限被拒绝”,python,pip,permission-denied,chatterbot,Python,Pip,Permission Denied,Chatterbot,安装chatterbot时出现此错误: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/attr' Consider using the `--user` option or check the permissions. 尝试使用pip install-user安装我使用了这个

安装chatterbot时出现此错误:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:  
'/usr/local/lib/python2.7/dist-packages/attr'
Consider using the `--user` option or check the permissions.

尝试使用pip install-user安装

我使用了这个命令pip install-user chatterbot,它安装了chatterbot包,但是当我尝试使用python时,它再次显示一些错误>>>来自chatterbot导入chatterbot回溯最近的调用last:File,第1行,在ImportError中:无法从“chatterbot”未知位置导入名称“ChatBot”