How do I ensure a Python package from a private repo is usable in both runs and models?



1 comment

  • Bjorn Robertsson

    This can be extended to pull in a separate requirements file based on OS with:

    import platform
    ...[sys.executable, "-m", "pip", "install", "-e", "/mnt/requirements.txt-"+platform.system()])

    This would install files listed in requirements.txt-Windows, requirements.txt-Linux or requirements.txt-Darwin. File location may vary and on Windows you may need to rely on current directory!

    Comment actions Permalink

Please sign in to leave a comment.