City-of-Helsinki / mlops-template

Generic repository template for small scale MLOps
Apache License 2.0
24 stars 8 forks source link

Local install to some environments may cause trouble with precalculated package versions in requirement.txt #16

Closed nakytoe closed 1 year ago

nakytoe commented 2 years ago

Describe the bug

The package versions specified in requirements.txt may not install in all local environments (if not using docker), and may have to be manually installed.

Desktop

How to fix

1) Recalculate the requirements with pip-tools locally and then install

or

2) manually install the packages in spesified in .in files

Note that both of these may again result in reproducibility issues in other environments. Container development is recommended.

Some spesific solutions to this issue

Project setup (Apple Silicon): Prerequisites:

Python project setup:

pip install virtualenv
python -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
pip install ipykernel
pip install nbdev
nakytoe commented 2 years ago

May be due to differences between ARM & x86 (default) architectures

nakytoe commented 1 year ago

solution: container development. Local install not encouraged.