Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need way of setting mirrors / alternate download locations for install and packages #1708

Open
Axel-Shark opened this issue Jan 3, 2025 · 2 comments

Comments

@Axel-Shark
Copy link

My org blocks https://www.python.org/ftp/python so reticulate commands like install_python() and py_install() fail since they're hitting https://www.python.org/ftp/python by default.

We have internal mirrors for all of the sources but I don't see any mention in the reticulate MAN for how to define alternate sources / mirrors

@t-kalinowski
Copy link
Member

You can point pip at your org's mirror by setting an env var like

PIP_INDEX_URL=https://<custom-mirror-url>

or by creating a global pip.conf file with the index-url set. That should work for py_install() and virtualenv_create()/virtualenv_install(), but I'm not sure about install_python().

You might also be able to use the Posit package manager, using the setup instructions here:
https://packagemanager.posit.co/client/#/repos/pypi/setup

@Axel-Shark
Copy link
Author

Thank you! I'm new to Python and hadn't come across any of these options while looking for an answer. This looks promising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants