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

Issue with pip3 install, help please? #21

Open
thamm98 opened this issue Dec 6, 2023 · 2 comments
Open

Issue with pip3 install, help please? #21

thamm98 opened this issue Dec 6, 2023 · 2 comments

Comments

@thamm98
Copy link

thamm98 commented Dec 6, 2023

when I try running pip3 install, I get the following error message:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider.

@DevMiser
Copy link
Owner

DevMiser commented Dec 6, 2023

The newest RPi OS does not currently play nice with pip. You can work with a virtual environment.
Alternatively, the following is a quick fix:
Open at terminal and enter the command: python--version
Write down the python version shown. You only need the number before and after the first dot, so if it returns Python 3.9.2 for example, write down 3.9
Next in your terminal enter the command: cd /usr/lib/python[add your number]
An example would be: cd /usr/lib/python3.9
Then enter the command: sudo rm EXTERNALLY-MANAGED
And then reboot

@thamm98
Copy link
Author

thamm98 commented Dec 7, 2023

Thanks for the quick reply, much appreciated, man your a genius!! Thanks again looking forward to the final run

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

No branches or pull requests

2 participants