The FirstTimeSetup.py
script will ensure a virtual environment is created to run the python recipes for Aivia with the appropriate packages.
No further install should be needed. Hence, the script is run once only.
The recipes are then containing some code to:
- Check the existence of the virtual environment,
- Automatically activate the virtual environment to be able to run with the appropriate packages,
- Fallback on main Aivia environment which we do not recommend to modify (i.e. add new packages).
- Python 3.12 - comes with Aivia
- Accept the risks that come from running Python Scripts you download from the internet. These scripts are provided to you to use at your own risk.
-
Download the latest
PythonEnvForAivia
zip available in the releases: https://github.com/AiviaCommunity/PythonForAivia/releases -
Unzip the downloaded folder
PythonEnvForAivia
in a location where there are no admin access restrictions. The tree structure of the folder is as follow
PythonEnvForAivia
├───FirstTimeSetup.py
├───requirements.txt
├───README.md
└───Recipes
└───[category subfolders]
└───... .py
- Load
FirstTimeSetup.py
in Aivia by "File>Open" or drag-and-drop - Load any 2D image in Aivia
- Click on "Start" button and wait for "Process Completed" message at the bottom of the recipe console
- Please make sure that you have the Internet connection and wait if bandwidth is slow.
- At the end of this step, a new folder called
env
should be created in thePythonEnvForAivia
folder. This will be the folder that contains a virtual environment identical to Aivia's embedded python that all future Recipes will run off of.
- Original image with text on top, showing what is the location of the python script that will be used