近期練習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
如上圖所示
這樣就安裝成功了