ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' C
程序员文章站
2022-03-25 22:24:45
近期练习flask写个blog, 安装flask扩展时 报ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-pac ......
近期练习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.
如图所示
这里报这个错,主要是因为权限不够 ,用下面的命令安装即可
pip install flask-wtf --user
如上图所示
这样就安装成功了
文章转自:https://www.cnblogs.com/zmdComeOn/p/11428570.html