O'Reilly logo

Computer Vision with Python 3 by Saurabh Kapur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

flask

Once we have the virtual environment setup, we will install flask within that environment.

Go to the CVaaS folder that we created in the last section. Inside the folder, run the following commands:

$: source bin/activate$: pip3 install flask$: pip3 install flask-cors

The first command will activate the virtual environment. Everything that you do going forward will stay within this folder. The next two commands will install flask and flask-cors. To test whether flask was installed properly, run the following commands. If it does not return any errors, the installation was successful:

$: python3 -c 'import flask'$: python3 -c 'from flask_cors import CORS,cross_origin'

We will use flask to build our RESTFUL APIs that will help the client ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required