ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Librar...

近期练习flask写个blog,

安装flask扩展时

pip install Flask-WTF

报ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' Consider using the `--user` option or check the permissions.

如图所示

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Librar..._第1张图片

 

这里报这个错,主要是因为权限不够 ,用下面的命令安装即可

pip install Flask-WTF --user

如上图所示

 

这样就安装成功了

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Librar..._第2张图片

 

你可能感兴趣的:(ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Librar...)