-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot uv pip install
without virtualenv
#1374
Comments
uv pip install
in container without virtualenvuv pip install
without virtualenv
👍 Agreed, we need some solution to this. I believe setting |
It would also be cool to do a couple of examples on how to create a Dockerfile especially with multi-stage builds, as I don't want to carry all the dependencies (c-library) that are needed when building, previously I used |
Here's how I setup my Dockerfile to work until we get a feature in
|
Since this issue is somewhat popular, just noting that I've been doing |
This probably would be the ultimate fix #1396 |
pip has the --require-virtualenv option which makes it behave like uv:
but --no-require-virtualenv seems too long of a name for an option in uv. And sure the default uv behavior is much saner default! |
* CI: use uv pip * [automated] Update CHANGELOG.md * Try setting VIRTUAL_ENV (astral-sh/uv#1374) * Set up VIRTUAL_ENV in a separate stage astral-sh/uv#1526 * No need to install pip and setuptools, no need BeautifulSoup for Windows (only CSP) * Replace setup.py with pyproject.toml * Need -e to install . * Hack to get around duplicated pip package issue * No need for BS in Windows * Set VIRTUAL_ENV on Win * Fix * uv has bugs on windows? * [automated] Update CHANGELOG.md * Update and remove hacks * Fix for windows * No uv for windows --------- Co-authored-by: MultiQC Bot <multiqc-bot@seqera.io>
I will mention the simplest solution, the uv pip install --system
|
It's common to not use virtual environments in containers, e.g. see discussion around PEP 704. I don't mind the default being to prevent installation into a base environment, but it would be nice to have some low level flag to override it.
(Maybe I can lie about
VIRTUAL_ENV
to work around...)The text was updated successfully, but these errors were encountered: