Unanswered
Hi,
What Is The Best Way To Get The Agent To Install A Dependency From Github.
I Have Tried This In This Sample Script:
Hi, sorry for the delay. rmdatasets == 0.0.1 is the name of the local package that lives in the same repo as the training code. Instead of picking the relative path to the package.
As as work around I set the setting to force the use of requirements.txt and I am using this script to generate it:
` import os
import subprocess
output = subprocess.check_output(["pip", "freeze"]).decode()
with open("requirements.txt", "w") as f:
for line in output.split("\n"):
if " @" in line:
line = line.replace(" @", "https://")
f.write(line + "\n") `It works but it is kind of a hack, also I have to remember to run the script when I change the local library.
Another option would be to modify the sys.apth to include the local libs.
169 Views
0
Answers
2 years ago
one year ago