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

Use UV without VENV (devcontainer) #2333

Closed
osbyrne opened this issue Mar 10, 2024 · 4 comments
Closed

Use UV without VENV (devcontainer) #2333

osbyrne opened this issue Mar 10, 2024 · 4 comments
Labels
question Asking for clarification or support

Comments

@osbyrne
Copy link

osbyrne commented Mar 10, 2024

uv pip install manim_automata

error: Failed to locate a virtualenv or Conda environment (checked: VIRTUAL_ENV, CONDA_PREFIX, and .venv). Run uv venv to create a virtualenv.

my dev env is a devcontainer, specifically the image mcr.microsoft.com/devcontainers/python:1-3.12-bullseye hosted at https://github.com/devcontainers/images/blob/main/src/python

I think .venv is useful to contain python dev envs, but in my case, the whole OS is contained. I shouldn't have to use .venv

@charliermarsh
Copy link
Member

Thanks, this is already supported -- you can pass --system or a specific Python interpreter with --python path/to/python. See the docs here: https://github.com/astral-sh/uv?tab=readme-ov-file#installing-into-arbitrary-python-environments.

@charliermarsh charliermarsh added the question Asking for clarification or support label Mar 10, 2024
@Malix-Labs
Copy link

But wait, --system doesn't work in GitHub codespaces

@zanieb
Copy link
Member

zanieb commented Jun 5, 2024

If you don't have permissions to write to the system (as in GitHub codespaces) you should just create a virtual environment.

You can track --user support (which would be an alternative) in #2077

@Malix-Labs
Copy link

Yep, I am already tracking that one

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

No branches or pull requests

4 participants