We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Random I came across to prevent installing anything with pip outside of a virtual environment.
pip config set global.require-virtualenv True
Creates the file ~/.config/pip/pip.conf with the contents
~/.config/pip/pip.conf
[global] require-virtualenv = True
And pip should then complain if you try to pip install outside of a virtualenv.
pip
Apparently you can set the PIP_REQUIRE_VIRTUALENV=true in your .zshrc or .bashrc too.
PIP_REQUIRE_VIRTUALENV=true
.zshrc
.bashrc
I wonder if there is similar to prevent installation in the base conda environment. 🤔
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Random I came across to prevent installing anything with pip outside of a virtual environment.
pip config set global.require-virtualenv True
Creates the file
~/.config/pip/pip.conf
with the contentsAnd
pip
should then complain if you try to pip install outside of a virtualenv.Apparently you can set the
PIP_REQUIRE_VIRTUALENV=true
in your.zshrc
or.bashrc
too.I wonder if there is similar to prevent installation in the base conda environment. 🤔
The text was updated successfully, but these errors were encountered: