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

Document why global pip install is used #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clach04
Copy link

@clach04 clach04 commented May 16, 2020

Explain why, and discourage anyone from attempting to use virtualenv/venv.

Current scripts expect global install, flash will fail if venv used.

Explain why, and discourage anyone from attempting to use virtualenv/venv
@rpavlik
Copy link
Contributor

rpavlik commented Dec 7, 2020

I was wondering this too, I'm often hesitant to install modules system-wide. Could the script instead set up a venv and use it? Python 3 comes with venv built-in...

@quentinsf
Copy link

Recent versions of Python 3 will try to stop you doing global pip installs and warn you that this is an 'externally managed environment'.
The easiest way to bypass this and allow the install_prereq.sh script to complete is to remove the files which mark it as such:

sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED

@clach04
Copy link
Author

clach04 commented Aug 2, 2024

Recent versions of Python 3 will try to stop you doing global pip installs and warn you that this is an 'externally managed environment'. The easiest way to bypass this and allow the install_prereq.sh script to complete is to remove the files which mark it as such:

sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED

Interesting. I'm not in a position to experiment but if I end up doing this again I will see what this does (I'm obviously going to use caution with both sudo and rm with wild cards! 😉 )

Note to self, alternatively use Docker :-)

@rpavlik
Copy link
Contributor

rpavlik commented Aug 5, 2024

There's also a flag called "--break-system-packages" to just ignore those EXTERNALLY-MANAGED files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants