How to Install Flask on Ubuntu 18.04

Flask is the framework of open-source micronets for Python that help developers build secure, scaled and controlled networks.



There are several ways to download Flask depending on the need. Using Ubuntu 18.04 the following way:


1. Downloading Python 3 and venv


Ubuntu 18.04 is installed on Python by default. You can verify that Python 3 is downloaded on the system by writing:


On output, it must look like the following:



Starting with Python 3.6, using the Venv module is recommended to create a virtual environment. To download python3-venv packages containing venv modules, run the following command:




When the module is successfully downloaded, it is ready to create a virtual environment for Flask applications.


Create a Virtual Environment


This starts by navigated to the directory where you want to save the virtual Python 3 environment. It can be your home directory or any other directory where your user has permission to read and write.


Create a new directory for Flask applications and navigate into them:


When already in the directory, run the command to create your new virtual environment:


The above command created a directory called venv which contains a copy of Python binary which is the standard Pip package manager and other support files. You can use any desired name in the virtual environment.


To start using this virtual environment, you must enable it by running activate scripts:


Once activated, the virtual environment bin directory will be added at the beginning of the $PATH variable. Also your shell prompt will change and it will show the virtual environment name that you are using. In this case it is venv.


Downloading Flask


When virtual environment is enabled, you can use the Python package manager's pip to download Flask:


Verify downloading with the following instructions which will print Flask version:


Your Flask version may be different from the version shown here.


source article: https://linuxize.com/post/how-to-install-flask-on-ubuntu-18-04/

Acronis Cyber Protect: Backup Failed Due to Insufficient Space for a Snapshot Volume
How to Change the User View in UIX