欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' C

程序员文章站 2022-07-02 13:14:13
近期练习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.

如图所示

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' C

 

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

pip install flask-wtf --user

如上图所示

 

这样就安装成功了

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous' C

文章转自:https://www.cnblogs.com/zmdComeOn/p/11428570.html