Hello neilglWith Bookworm we now use a python virtual environment (venv) see https://www.raspberrypi.com/documentati ... spberry-pi
( thats why it is on about "externally-managed-environment" )
I usually create one with system packages:then pip install to that venvCode:
mkdir my_projectcd my_projectpython -m venv --system-site-packages envsource env/bin/activate
Thanks for your reply
I finally got some time to look at this
I went through the following steps
sudo apt install virtualenv
cd /var/www/html/Thermostat
python -m venv --system-site-packages env
source env/bin/activate
sudo pip install pysimplegui
My prompt is prefixed with (env)
But I am still returning a
error: externally-managed-environment
I then ran
sudo pipx install pysimplegui
Just to see how it would respond
And it returned
'pysimplegui' already seems to be installed.
So even though it has (env) in the prompt it is behaving like it is in the root OS
Any thoughts?
Thanks
Statistics: Posted by Veshengo — Wed Oct 02, 2024 8:38 am