cd /path/to/project/f_macro_optimization
pyenv install 3.8.6
pyenv local 3.8.6
poetry shell
poetry install # install the defined dependencies for the project
Run the script
# spawn a shell within your virtual environment
poetry shell
python <script># or you can directly run
poetry run python <script>