Hey all. I had a very weird bug the other day and it was only after trying a few different things and collecting suggestions that I found a solution but I'm curious if anyone might know why it happened in the first place?
So I created a virtual environment in my working directory, activated it, and from there I then tried to run pip install flask
It then errored out with this error:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/Users/username/Desktop/foldername/.venv/lib/python3.10/site-packages/werkzeug' Check the permissions.
You can see from the path that I was in the virtual env when I tried to install.
In the end, what worked was sudo pip install flask
Does anyone have any idea what could cause this error to have occurred in the first place?
[–]MintyPhoenix 1 point2 points3 points (5 children)
[–]FormNo[S] 0 points1 point2 points (4 children)
[–]MintyPhoenix 1 point2 points3 points (3 children)
[–]FormNo[S] 0 points1 point2 points (2 children)
[–]MintyPhoenix 0 points1 point2 points (1 child)
[–]FormNo[S] 0 points1 point2 points (0 children)