Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Python • DS18B20 / w1thermsensor

$
0
0
Hi

When I was using my old Raspberry pi, I had no issues with reading the sensor, I have upgraded to thr Pi 5, I know there is the ussure outlined on the below

viewtopic.php?t=362339

But when I try to install

Code:

sudo apt-get install python3-w1thermsensor                Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneE: Unable to locate package python3-w1thermsensorsudo pip3 install w1thermsensorerror: 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.    For more information visit http://rptl.io/venvnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.hint: See PEP 668 for the detailed specification.
So how do I go about using the w1thermsensor, or is there another package I should be reading the sensors with, I have multiple sensors and need to identify which to use in the code

Statistics: Posted by cah1982 — Wed Mar 06, 2024 9:25 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles