Unanswered
Hi Everybody.
When I Want To Force The Agent To Not Reproduce My Local Pip Environment, I Add
This is actually in runtime (i.e. when running the code),
My script looks like that
` import clearml
clearml.Task.force_requirements_env_freeze(force=False, requirements_file="requirements.txt")
task = clearml.Task.init(...)
task.set_script(working_dir=dir, entry_point="my_script.py")
task.execute_remotely(queue_name='default')
rest of script goes here.... `When you refer to runtime, do you mean when the script is executed remotely, or when I run my_script.py locally (in order to create and enqueue the task)?
so relative to the working directory
So something like os.path.join(os.path.dirname(__file__), "requirements.txt")
is the right way? (assuming the script and the requirements file are at the same directory)
156 Views
0
Answers
2 years ago
one year ago