-
Notifications
You must be signed in to change notification settings - Fork 328
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
Support for uv
#1669
Comments
I would also be very interested in this feature. I believe that the main stumbling is that In this minimal example, I install
Notice that we get # Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Initialize a new project
uv init mwe
cd mwe
# Add some python dependencies
uv add pandas default reticulate python configRscript -e "reticulate::py_discover_config()"
python: /home/username/.virtualenvs/global/bin/python
libpython: /home/username/.pyenv/versions/3.12.4/lib/libpython3.12.dylib
pythonhome: /home/username/.virtualenvs/global:/home/username/.virtualenvs/global
virtualenv: /home/username/.virtualenvs/global/bin/activate_this.py
version: 3.12.4 (main, Jun 9 2024, 13:30:56) [Clang 15.0.0 (clang-1500.3.9.4)]
numpy: /home/username/.virtualenvs/global/lib/python3.12/site-packages/numpy
numpy_version: 2.0.2
|
@vincentarelbundock Thanks for reporting this! Reticulate should now work with a venv created by I'll keep this issue open since we'd still like to add convenient wrappers in reticulate around |
Thanks a lot for the quick fix @t-kalinowski . Looks like the dev version is working for me! |
uv
is a fast and efficient package management tool. We should consider adding support for it in reticulate.One of its key advantages is that it allows for installing a specific Python version on demand in the same motion as setting up the virtual environment. This capability eliminates the need for users to first ensure a suitable Python venv starter is pre-installed (e.g., by running
install_python()
). It also avoids the need for reticulate to search for and locate suitablevirtualenv_starter()
s. This feature could streamline the user experience.The ability to install a specific Python version on demand means that
uv
could serve as a drop-in replacement for many uses ofconda
. Importantly, it sidesteps the potential risk of binary incompatibilities thatconda
usage introduces.The text was updated successfully, but these errors were encountered: