From 6aeca8fbe997275c16d43f493329ce64ded848e6 Mon Sep 17 00:00:00 2001 From: Erick <74315338+erickahmed@users.noreply.github.com> Date: Wed, 10 Aug 2022 12:25:05 +0200 Subject: [PATCH] Add instructions about creating a virtual enviroment and update dependencies auto-installer script (#16) * Add instructions about prereq and dependency * Add virtualenv dependency --- README.md | 13 +++++++++++++ dependencies.py | 1 + 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index bb2f138..8de450f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # vision-engine-layer-1 Enviroment for the object recognition engine based on Google Cloud Vision + +## Dependencies +To run the script you will need to install a few dependencies. +First update your system using your favorite package manager, then run the script ./prerequisites.py to automatically install or update all the needed packages. +You still need to have python and pip installed and updated. + +If you need to add new prerequisites, it is preferable to add them as a pip packages. + +## Prerequisites +You will need to create a Python virtual enviroment for each enviroment folder in the repo, using: +```bash + virtualenv ENVIROMENT-NAME +``` diff --git a/dependencies.py b/dependencies.py index f89c436..e1f4170 100644 --- a/dependencies.py +++ b/dependencies.py @@ -1,6 +1,7 @@ import os # List of prerequisite packages needed +os.system("pip install virtualenv") os.system("python -m pip install --upgrade pip") os.system("pip install numpy") os.system("pip install opencv-python")