When installing with the given commands, one of the packages installs a newer version of scipy which has depreciated the "tri", "triu" and "tril" functions. Because of the missing functions, the program can't start. The resulting error code looks something like this:
ImportError: cannot import name 'triu' from 'scipy.linalg.special_matrices' (/var/www/logai/venv/lib64/python3.9/site-packages/scipy/linalg/special_matrices.py)
It can be resolved by installing the latest version of scipy that still supports them: pip install scipy==1.10.1
When installing with the given commands, one of the packages installs a newer version of scipy which has depreciated the "tri", "triu" and "tril" functions. Because of the missing functions, the program can't start. The resulting error code looks something like this:
ImportError: cannot import name 'triu' from 'scipy.linalg.special_matrices' (/var/www/logai/venv/lib64/python3.9/site-packages/scipy/linalg/special_matrices.py)
It can be resolved by installing the latest version of scipy that still supports them:
pip install scipy==1.10.1
(taken from this Stack Overflow problem)