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

[ENH] - Remove ability to easily install python packages globally in pip #1970

Closed
costrouc opened this issue Aug 31, 2023 · 2 comments
Closed
Labels
area: user experience 👩🏻‍💻 needs: discussion 💬 Needs discussion with the rest of the team

Comments

@costrouc
Copy link
Member

costrouc commented Aug 31, 2023

Feature description

Set the environment variable PIP_REQUIRE_VIRTUALENV=true to prevent global pip installs of packages.

I tried this within a docker container and this is the error messages that users would get

$ docker run -it python bash
root@f5040281fa1e:/# export PIP_REQUIRE_VIRTUALENV=true
root@f5040281fa1e:/# pip install numpy
ERROR: Could not find an activated virtualenv (required).

Value and/or benefit

We want to prevent users from easily installing within $HOME/.local in nebari. Since this breaks environments often.

Anything else?

No response

@dharhas
Copy link
Member

dharhas commented Oct 10, 2023

How do we deal with development packages? i.e. things we currently install with pip install -e .

@kcpevey
Copy link
Contributor

kcpevey commented Mar 12, 2024

Resolved by #2191

@kcpevey kcpevey closed this as completed Mar 12, 2024
@github-project-automation github-project-automation bot moved this from New 🚦 to Done 💪🏾 in 🪴 Nebari Project Management Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: user experience 👩🏻‍💻 needs: discussion 💬 Needs discussion with the rest of the team
Projects
Development

No branches or pull requests

3 participants