# Pythonshell for Python3 ?!

**URL:** <https://discourse.nodered.org/t/pythonshell-for-python3/25473>\
**Category:** General\
**Created:** [25 April 2020 10:28 UTC](https://discourse.nodered.org/t/pythonshell-for-python3/25473 "2020-04-25T10:28:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiwi\_gamer01](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Post date:** [25 April 2020 10:28 UTC](https://discourse.nodered.org/t/pythonshell-for-python3/25473/1 "2020-04-25T10:28:34Z")

</div>

I use pythonshell to import printout data from a Python3 script but pythonshell uses python2 -\> this leads to an error. Now the question is how can I tell the Powershell that it should use python3 or is there another solution? Standard version python is 3.7.3.

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [25 April 2020 11:08 UTC](https://discourse.nodered.org/t/pythonshell-for-python3/25473/2 "2020-04-25T11:08:50Z")

</div>

You can use node-red-node-daemon [https://flows.nodered.org/node/node-red-node-daemon](https://flows.nodered.org/node/node-red-node-daemon) to interact with longer running python scripts and there output.  
Only thing good to know is that you only put python3 in the command and put everything else like the name of your python file and arguments in the argument field of the node config.  
Johannes

---

<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:** [24 June 2020 11:08 UTC](https://discourse.nodered.org/t/pythonshell-for-python3/25473/3 "2020-06-24T11:08:52Z")

</div>

Closed on 24 June 2020 11:08 UTC

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