You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using pixi --version.
Reproducible example
$ pixi run pip --require-virtualenv freeze
ERROR: Could not find an activated virtualenv (required).
Issue description
With --require-virtualenv flag, pip refuses most operation unless a virtual environment is detected, such as to avoid installing stuff globally by mistake.
This issue happened to me because:
I have PIP_REQUIRE_VIRTUALENV=1 set globally.
maturin develop calls into pip behind the scenes
Workaround: explicitly set PIP_REQUIRE_VIRTUALENV to zero (which is easy enough for us as the maturin call is actually behind a task).
Expected behavior
Ideally, pip would think it's ok to install stuff in pixi-managed environments (though there might obviously be implications that I ignore).
The text was updated successfully, but these errors were encountered:
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
With
--require-virtualenv
flag, pip refuses most operation unless a virtual environment is detected, such as to avoid installing stuff globally by mistake.This issue happened to me because:
PIP_REQUIRE_VIRTUALENV=1
set globally.maturin develop
calls into pip behind the scenesWorkaround: explicitly set
PIP_REQUIRE_VIRTUALENV
to zero (which is easy enough for us as thematurin
call is actually behind a task).Expected behavior
Ideally, pip would think it's ok to install stuff in pixi-managed environments (though there might obviously be implications that I ignore).
The text was updated successfully, but these errors were encountered: