GentleSwallow91 notice that on the Task you have "Installed Packages" this is the equivalent of requirments.txt , you can edit it and add a missing package, or programatically add it in code (though usually directly imported packages are automatically registered, how come this one is missing?)
to add a package in code:Task.add_requirements(package_name="my_package", package_version=">=1") task = Task.init(...)
base docker image but clearML has not determined it during the script run and has not put it package list.
Are you running in docker mode ? the venv inside the docker inherits from all the installed packages, how come it is missing?
AgitatedDove14 thanks - that makes it clear.
In particular there are some optional dependencies - in my case I am using pandas.read_xls
and it requires openpyxl
.
Meanwhile I have changed a script and inserted an explicit import - now agent makes this install.
Are you running in docker mode ? the venv inside the docker inherits from all the installed packages, how come it is missing?
My fault - I was in pip mode...