Ensure you have python 3.12 installed on your system. You can check by running:
python3 --version
To create a venv named machine-learning run:
python3 -m venv machine-learning
To activate the venv:
source machine-learning/bin/activate
You can also use a tool like pyenv with the pyenv-virtualenv to handle python versions and venvs for you. It will activate the venv automaticaly for you when you enter the repository.
pyenv install 3.12
pyenv virtualenv 3.12 machine-learning
pyenv activate machine-learning
After activating the venv install dependencies:
pip install -r requirements.txt
Optionally you can install pre-commit hooks that automatically will format and check linting with ruff when you commit:
pre-commit install
You can also install Ruff for your code editor to automatically format and check linting.