To confirm, if i have fresh venv with no dependency installed except clearml
I have a requirements.txt file in root, and a script at scripts/script1.py
The script1.py does task.init(), execute_remotely and then imports few dependenceies
Now I run python scripts/script1.py
And it should pick up the installed packages correctly?
Ok i did a pip install -r requirements.txt and NOW it picks them up correctly
So packages have to be installed and not just be mentioned in requirements / imported?
Yes, it looks for them locally so it has all the specific versions you need.
If the "installed packages" is totally empty the agent will revert to looking for requirements.txt inside the repository.
Is it not possible to say just look at my requirements.txt file and the imports in the script?
I think there is a GitHub Issue for this feature
(basically the issue is, requirements.txt are very often not updated, and have no real version lock, so replicating a working env is always safer)