#πŸ”’ Is it Safe to pass --break-system-packages if I am in a venv?

23 messages Β· Page 1 of 1 (latest)

supple heath
#

Title, I am in my virtual enviroment and am trying to install pandas (pip install pandas) but it is giving me this error: https://askubuntu.com/questions/1465218/pip-error-on-ubuntu-externally-managed-environment-Γ—-this-environment-is-extern

Is it safe to pass --break-system-packages if I am in a venv?

visual vigilBOT
#

@supple heath

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sage falcon
#

in a venv it shouldn't prompt you to add that

#

make sure you actually activated the venv, and it's pointing to the right location (pip -V)

supple heath
#

yeah it is pointing to the enviroment

#

it's in /home/username/env/myenv/lib/.....

crimson cipher
#

Are you using --user like in the SO post you linked?

#

Triple check if pip --version is pointing to the correct environment

supple heath
#

no i'm not

#

yes i get two different file locations

sage falcon
#

that's not your venv pip

supple heath
#

when i do pip -V

sage falcon
#

ah nvm

#

pip install in your venv should work without getting the warning

supple heath
#

yeah it works in the guy's video without any warning so i'm a little hesitant to pass the --break-system

sage falcon
#

you shouldn't need to.. it's odd if the error shows up.

#

(the video also might be older than the relatively new "break-system-packages" check)

spare snow
#

It sounds like you're not running the pip from the venv

visual vigilBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.