Ok. Found the solution.
The importance is to use this:
Task.add_requirements("requirements.txt")
task = Task.init(project_name='hieutest', task_name='foo',reuse_last_task_id=False)
And not:
task = Task.init(project_name='hieutest', task_name='foo',reuse_last_task_id=False)
task.add_requirements("requirements.txt")
but then it still missing a bunch of library in the Taks (that succeed) > Execution > INSTALLED PACKAGES
So when I do a clone of that task, and try to run the clone, the task fail because it is missing python package 😞
interesting, the issue happen with mamba
venv. Now I use a python native venv and it is detecting correctly
is task.add_requirements("requirements.txt")
redundant ?
Is ClearML always look for a requirements.txt
in the repo root ?
and in the train.py
, I have task.add_requirements("requirements.txt")
it is actually in the repo root folder.
@<1576381444509405184:profile|ManiacalLizard2> can you try putting it in the repository's requirements.txt instead of adding it in code?
(I use ssh key to access to our git server in our private network)
that format is correct as I can run pip install -r requirements.txt
using the exact same file
Hi @<1576381444509405184:profile|ManiacalLizard2> , I think the correct format is PACKAGE @ git+
None