# Node-red-contrib-dht-sensor palette install error

**URL:** https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781
**Category:** Dashboard
**Created:** [16 August 2021 10:57 UTC](https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781 "2021-08-16T10:57:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [16 August 2021 10:57 UTC](https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781/1 "2021-08-16T10:57:20Z")

</div>

I went to install a manage palette called: node-red-contrib-dht-sensor and it gave me this error, it seems to be Python but I already have Python installed, how do I solve this?

**Event log**

```auto
-----------------------------------------------------------
2021-08-16T10:49:36.148Z Install : node-red-contrib-dht-sensor 1.0.4

2021-08-16T10:49:36.490Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-dht-sensor@1.0.4
2021-08-16T10:49:42.963Z [out] 
2021-08-16T10:49:42.963Z [out] > node-dht-sensor@0.4.3 install C:\Users\User\.node-red\node_modules\node-dht-sensor
2021-08-16T10:49:42.963Z [out] > node-gyp configure
2021-08-16T10:49:42.963Z [out] 
2021-08-16T10:49:42.995Z [out] 
2021-08-16T10:49:42.995Z [out] C:\Users\User\.node-red\node_modules\node-dht-sensor>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure ) else (
2021-08-16T10:49:42.995Z [out] node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure ) 
2021-08-16T10:49:44.302Z [err] gyp
2021-08-16T10:49:44.302Z [err] ERR! find Python
2021-08-16T10:49:44.302Z [err]  
2021-08-16T10:49:44.302Z [err] gyp 
2021-08-16T10:49:44.302Z [err] ERR! find Python Python is not set from command line or npm configuration
2021-08-16T10:49:44.302Z [err] gyp 
2021-08-16T10:49:44.302Z [err] ERR! find Python Python is not set from environment variable PYTHON
2021-08-16T10:49:44.302Z [err] gyp ERR!
2021-08-16T10:49:44.303Z [err] find Python checking if "python" can be used
2021-08-16T10:49:44.303Z [err] gyp ERR!
2021-08-16T10:49:44.303Z [err] find Python - "python" is not in PATH or produced an error
2021-08-16T10:49:44.303Z [err] gyp ERR! 
2021-08-16T10:49:44.303Z [err] find Python checking if "python2" can be used
2021-08-16T10:49:44.303Z [err] gyp ERR! 
2021-08-16T10:49:44.303Z [err] find Python - "python2" is not in PATH or produced an error
2021-08-16T10:49:44.303Z [err] gyp ERR! 
2021-08-16T10:49:44.303Z [err] find Python checking if "python3" can be used
2021-08-16T10:49:44.303Z [err] gyp ERR! find Python
2021-08-16T10:49:44.303Z [err] - "python3" is not in PATH or produced an error
2021-08-16T10:49:44.303Z [err] gyp ERR! find Python checking if the py launcher can be used to find Python 2
2021-08-16T10:49:44.303Z [err] gyp ERR! find Python - "py.exe" is not in PATH or produced an error
2021-08-16T10:49:44.303Z [err] gyp 
2021-08-16T10:49:44.303Z [err] ERR! find Python checking if Python is C:\Python27\python.exe
2021-08-16T10:49:44.303Z [err] gyp ERR! 
2021-08-16T10:49:44.303Z [err] find Python - "C:\Python27\python.exe" could not be run
2021-08-16T10:49:44.303Z [err] gyp ERR! 
2021-08-16T10:49:44.304Z [err] find Python checking if Python is C:\Python37\python.exe
2021-08-16T10:49:44.304Z [err] gyp ERR! 
2021-08-16T10:49:44.304Z [err] find Python - "C:\Python37\python.exe" could not be run
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python
2021-08-16T10:49:44.304Z [err]  
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python
2021-08-16T10:49:44.304Z [err] **********************************************************
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python
2021-08-16T10:49:44.304Z [err] You need to install the latest version of Python.
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python
2021-08-16T10:49:44.304Z [err] Node-gyp should be able to find and use Python. If not,
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python you can try one of the following options:
2021-08-16T10:49:44.304Z [err] gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
2021-08-16T10:49:44.304Z [err] gyp
2021-08-16T10:49:44.304Z [err] ERR! find Python (accepted by both node-gyp and npm)
2021-08-16T10:49:44.304Z [err] gyp
2021-08-16T10:49:44.304Z [err] ERR! find Python - Set the environment variable PYTHON
2021-08-16T10:49:44.304Z [err] gyp 
2021-08-16T10:49:44.304Z [err] ERR! find Python - Set the npm configuration variable python:
2021-08-16T10:49:44.304Z [err] gyp ERR!
2021-08-16T10:49:44.304Z [err] find Python npm config set python "C:\Path\To\python.exe"
2021-08-16T10:49:44.304Z [err] gyp ERR!
2021-08-16T10:49:44.305Z [err] find Python For more information consult the documentation at:
2021-08-16T10:49:44.305Z [err] gyp ERR!
2021-08-16T10:49:44.305Z [err] find Python https://github.com/nodejs/node-gyp#installation
2021-08-16T10:49:44.305Z [err] gyp ERR! 
2021-08-16T10:49:44.305Z [err] find Python **********************************************************
2021-08-16T10:49:44.305Z [err] gyp ERR! 
2021-08-16T10:49:44.305Z [err] find Python 
2021-08-16T10:49:44.305Z [err] gyp
2021-08-16T10:49:44.306Z [err] ERR! configure error 
2021-08-16T10:49:44.306Z [err] gyp 
2021-08-16T10:49:44.306Z [err] ERR! stack Error: Could not find any Python installation to use
2021-08-16T10:49:44.306Z [err] gyp 
2021-08-16T10:49:44.306Z [err] ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
2021-08-16T10:49:44.306Z [err] gyp 
2021-08-16T10:49:44.306Z [err] ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
2021-08-16T10:49:44.306Z [err] gyp ERR!
2021-08-16T10:49:44.306Z [err] stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
2021-08-16T10:49:44.306Z [err] gyp ERR!
2021-08-16T10:49:44.306Z [err] stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
2021-08-16T10:49:44.306Z [err] gyp ERR! 
2021-08-16T10:49:44.306Z [err] stack at exithandler (child_process.js:397:5)
2021-08-16T10:49:44.306Z [err] gyp ERR! stack
2021-08-16T10:49:44.306Z [err] at ChildProcess.errorhandler (child_process.js:409:5)
2021-08-16T10:49:44.306Z [err] gyp ERR! 
2021-08-16T10:49:44.306Z [err] stack at ChildProcess.emit (events.js:400:28)
2021-08-16T10:49:44.306Z [err] gyp ERR! stack
2021-08-16T10:49:44.307Z [err] at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2021-08-16T10:49:44.307Z [err] gyp ERR! stack
2021-08-16T10:49:44.307Z [err] at onErrorNT (internal/child_process.js:467:16)
2021-08-16T10:49:44.307Z [err] gyp ERR! stack
2021-08-16T10:49:44.307Z [err] at processTicksAndRejections (internal/process/task_queues.js:82:21)
2021-08-16T10:49:44.307Z [err] gyp 
2021-08-16T10:49:44.307Z [err] ERR! System Windows_NT 10.0.19043
2021-08-16T10:49:44.307Z [err] gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure"
2021-08-16T10:49:44.307Z [err] gyp ERR! 
2021-08-16T10:49:44.307Z [err] cwd C:\Users\User\.node-red\node_modules\node-dht-sensor
2021-08-16T10:49:44.307Z [err] gyp ERR! 
2021-08-16T10:49:44.307Z [err] node -v v14.17.5
2021-08-16T10:49:44.307Z [err] gyp ERR! 
2021-08-16T10:49:44.307Z [err] node-gyp -v v5.1.0
2021-08-16T10:49:44.307Z [err] gyp ERR! 
2021-08-16T10:49:44.308Z [err] not ok 
2021-08-16T10:49:44.486Z [err] npm 
2021-08-16T10:49:44.486Z [err] ERR! code ELIFECYCLE
2021-08-16T10:49:44.486Z [err] npm ERR!
2021-08-16T10:49:44.486Z [err] errno 1
2021-08-16T10:49:44.497Z [err] npm ERR!
2021-08-16T10:49:44.497Z [err] node-dht-sensor@0.4.3 install: `node-gyp configure`
2021-08-16T10:49:44.497Z [err] npm ERR! Exit status 1
2021-08-16T10:49:44.497Z [err] npm ERR! 
2021-08-16T10:49:44.497Z [err] npm 
2021-08-16T10:49:44.497Z [err] ERR! Failed at the node-dht-sensor@0.4.3 install script.
2021-08-16T10:49:44.497Z [err] npm ERR!
2021-08-16T10:49:44.497Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2021-08-16T10:49:44.505Z [err] 
2021-08-16T10:49:44.505Z [err] npm ERR! A complete log of this run can be found in:
2021-08-16T10:49:44.505Z [err] npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2021-08-16T10_49_44_507Z-debug.log
2021-08-16T10:49:44.531Z rc=1

```

Thank you for your attention!

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [17 August 2021 01:10 UTC](https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781/2 "2021-08-17T01:10:26Z")

</div>

> [@owmath](#):
>
> node-red-contrib-dht-sensor

That node is meant for use on the Raspberry Pi, not Windows.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db9e95efd311f517f7652119ade2da8bdb23cd3e.png)

---

<div class="post-metadata">

### Author: ![owmath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/owmath/32/46537_2.png) [@owmath](https://discourse.nodered.org/u/owmath)
#### Post date: [17 August 2021 01:55 UTC](https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781/3 "2021-08-17T01:55:42Z")

</div>

> [@Gunner](#):
>
> Raspberry Pi

got it, thank you very much for the answer

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [31 August 2021 01:55 UTC](https://discourse.nodered.org/t/node-red-contrib-dht-sensor-palette-install-error/49781/4 "2021-08-31T01:55:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
