<p>Based on <code>strace</code> is seems that <code>fuscript</code> binary searches for <code>libpython2.7.so</code> and <code>libpython3.6.so</code></p>
<pre><code>$ /opt/resolve/libs/Fusion/fuscript -l py3

DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.

ERROR: Language 'py3' is not available.

</code></pre>
<p>E.g. on Debian based systems this could be installed, if you're lucky and the exact version is available for your distribution.</p>
<pre><code>sudo apt install libpython3.6
</code></pre>
<p>The binary looks into several paths one of them is <code>/usr/local/lib/libpython3.6.so</code>. According to documentation this could be configured by <code>PYTHONPATH</code> env variable. However it doesn't seem to have any effect.</p>
<p>Using <a href="https://github.com/pyenv/pyenv" rel="nofollow noreferrer">pyenv</a> any Python version can be installed (we need shared libraries - <code>*.so</code> files):</p>
<pre><code>env PYTHON_CONFIGURE_OPTS=&quot;--enable-shared&quot; pyenv install 3.6.11
</code></pre>
<p>then create a symlink:</p>
<pre><code>sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/python3.6 /usr/local/lib/python3.6
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/libpython3.so /usr/local/lib/libpython3.6.so
</code></pre>
<p>Finally console should be working (Resolve will need a restart):</p>
<pre><code>$ /opt/resolve/libs/Fusion/fuscript -l py3 -i

DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.

Cannot read termcap database;
using dumb terminal settings.
Py3&gt;
</code></pre>

CC BY-SA 4.0
2021-03-18T22:34:38.997Z
How would this work on a Mac?
raarts
CC BY-SA 4.0
2021-03-22T08:20:54.973Z
It should work the same way, just use `brew install pyenv`. See pyenv documentation.
Tombart
CC BY-SA 4.0
2022-02-07T00:20:36.857Z
Is it possible with PYTHONHOME variable? I have found this post from bmd staff:
https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=141012#p759128
Ashark
CC BY-SA 4.0
2022-02-07T00:51:22.607Z
@Tombart how to list the paths in which dr looks for the python3.6?
Ashark
CC BY-SA 4.0
2022-02-07T01:09:35.893Z
PYTHONPATH in documentation is said in context of launching the python script located not in expected standard direcrories. So it looks like not ralated to path itself for python3.6.
Ashark
CC BY-SA 4.0
2023-04-15T12:56:32.520Z
In macOS: either use the official Python.org installers, or symlink your homebrew installed python3 into /usr/local/bin/python3. See https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=179227
hmijail
CC BY-SA 4.0
2020-10-17T22:04:40.967Z
2020-10-17T22:04:40.967Z
Tombart
<p>I'm trying to run some basic scripts on Linux (Debian), however no python can be found.</p>
<p><a href="https://i.sstatic.net/5LblS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5LblS.png" alt="davinci resolve python" /></a></p>
<p>Both Python 2 and 3 are present on the system.</p>
<pre><code>$ python -V
Python 2.7.18
</code></pre>
<pre><code>$ python3 -V
Python 3.8.5
</code></pre>

<davinci-resolve><linux>
DaVinci Resolve Python 3.6 not found
Tombart
# DaVinci Resolve Python 3.6 not found

(Asked by: username_0 on 2020-10-17)

I'm trying to run some basic scripts on Linux (Debian), however no python can be found.

Both Python 2 and 3 are present on the system.
$ python -V
Python 2.7.18

$ python3 -V
Python 3.8.5

**Tags:** davinci-resolve, linux


---

## 1 answers

### Answer by username_0 on 2020-10-17. Score: 2 | Accepted answer

Based on strace is seems that fuscript binary searches for libpython2.7.so and libpython3.6.so
$ /opt/resolve/libs/Fusion/fuscript -l py3

DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.

ERROR: Language 'py3' is not available.


E.g. on Debian based systems this could be installed, if you're lucky and the exact version is available for your distribution.
sudo apt install libpython3.6

The binary looks into several paths one of them is /usr/local/lib/libpython3.6.so. According to documentation this could be configured by PYTHONPATH env variable. However it doesn't seem to have any effect.
Using pyenv any Python version can be installed (we need shared libraries - *.so files):
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.11

then create a symlink:
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/python3.6 /usr/local/lib/python3.6
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/libpython3.so /usr/local/lib/libpython3.6.so

Finally console should be working (Resolve will need a restart):
$ /opt/resolve/libs/Fusion/fuscript -l py3 -i

DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.

Cannot read termcap database;
using dumb terminal settings.
Py3>

> **Comments:**
> **username_1**: How would this work on a Mac?  
> **username_0**: It should work the same way, just use `brew install pyenv`. See pyenv documentation.  
> **username_2**: Is it possible with PYTHONHOME variable? I have found this post from bmd staff: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=141012#p759128  
> **username_2**: @username_0 how to list the paths in which dr looks for the python3.6?  
> **username_2**: PYTHONPATH in documentation is said in context of launching the python script located not in expected standard direcrories. So it looks like not ralated to path itself for python3.6.  
> **username_3**: In macOS: either use the official Python.org installers, or symlink your homebrew installed python3 into /usr/local/bin/python3. See https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=179227  

---

