Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-18T22:34:38.997Z
Answers.Text: How would this work on a Mac?
Answers.UserDisplayName: raarts
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-22T08:20:54.973Z
Answers.Text: It should work the same way, just use `brew install pyenv`. See pyenv documentation.
Answers.UserDisplayName: Tombart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-07T00:20:36.857Z
Answers.Text: 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
Answers.UserDisplayName: Ashark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-07T00:51:22.607Z
Answers.Text: @Tombart how to list the paths in which dr looks for the python3.6?
Answers.UserDisplayName: Ashark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-07T01:09:35.893Z
Answers.Text: 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.
Answers.UserDisplayName: Ashark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-15T12:56:32.520Z
Answers.Text: 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
Answers.UserDisplayName: hmijail
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-17T22:04:40.967Z
Answers.LastActivityDate: 2020-10-17T22:04:40.967Z
Answers.UserDisplayName: Tombart
Body: <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>
  
Tags: <davinci-resolve><linux>
Title: DaVinci Resolve Python 3.6 not found
UserDisplayName: Tombart
ThreadText: # 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.
  
  [![davinci resolve python](https://i.sstatic.net/5LblS.png)](https://i.sstatic.net/5LblS.png)
  
  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](https://github.com/pyenv/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  
  
  ---
  
  