adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

Issue installing package #97

Open puran-khat opened 2 months ago

puran-khat commented 2 months ago

Hello, I am new to this. I am doing college project. I am working on project to get temp and humidity. Not sure where to open the issue, so i opened here.

I installed VM, Raspberry pi desktop. I have DHT_11 sensor, raspberry pi 4 board. When i ran

"sudo pip install Adafruit_DHT" Getting error below. Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting Adafruit_DHT Using cached Adafruit_DHT-1.4.0.tar.gz (15 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: Adafruit_DHT Building wheel for Adafruit_DHT (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Adafruit_DHT Running setup.py clean for Adafruit_DHT Failed to build Adafruit_DHT ERROR: Could not build wheels for Adafruit_DHT, which is required to install pyproject.toml-based projects