Adafruit DHT no longer supported in python2 #388
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instructions in the readme no longer work for DHT11, DHT22, and AM2302 sensors. Decrimented in January 2020, unsupported entirely as of January 2021.
cd ~
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get update
sudo apt-get install build-essential python-dev python-openssl
sudo python setup.py install
should include python3 specific instructions:
cd ~
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt install python3 python3-pip
sudo python3 -m pip install --upgrade pip setuptools wheel
sudo pip3 install Adafruit_DHT
sudo python3 setup.py install
See Adafruit's page for more details:
https://github.com/adafruit/Adafruit_Python_DHT
See #368