Hi team, I have been using the following command t...
# ask-metaflow
r
Hi team, I have been using the following command to install packages via a private pip channel:
Copy code
PIP_EXTRA_INDEX_URL=<https://my_company/repository/pypi-my_company/simple> python hello_flow.py --environment=pypi run
Do you know how I can specify the same url with:
Copy code
with Runner("hello_flow.py".run() as running:
   print(f"{running.run} finished")
Thanks!
1
d
you should be able to do something like:
Copy code
with Runner("hello_flow.py", env={"PIP_EXTRA_INDEX_URL": "..."}, environment="pypi").run()
Note that the env part is optional as well if the outer process already has the proper environment variables set up.