I got the following error message screen when trying to install Flask in Ubuntu 16.04.
Asked
Active
Viewed 4,793 times
1 Answers
2
Flask packages for Python 2.x and Python 3.x can be quickly and easily installed from the default Ubuntu repositories in all currently supported versions of Ubuntu. Open the terminal and type:
sudo apt install python-flask # for Python 2.x
...and/or
sudo apt install python3-flask # for Python 3.x
Judging from the error messages that you got, the attempted installation of Flask using pip failed for two reasons listed in order of probability.
You got a
Permission deniederror because you ranpip install flaskas a normal user instead of prefacing the same command withsudolike this:sudo pip install flaskYou may also need to update pip to the latest version first.
sudo -H pip2 install --upgrade pip
karel
- 122,292
- 133
- 301
- 332
