Hey,
SAT and Designer python API are two different things and different products. SD python API is directly embedded in the Designer installation so you have nothing to do. Whereas SAT is a bunch of different tools and can be used separately from Designer, it is designed to automate and implement a substance workflow (as an instance in a production pipeline). In this bunch there is a python
pip package:
pysbs I invite you to learn more about pip package
https://pip.pypa.io/en/stable/ which is one of standard python package form.
So one way to install pysbs package correctly is to use pip to install it in the python interpreter site-packages:
From a terminal or a Powershell:
pip install /satinstallpath/Python\ API/Pysbs-2019.3.1.zip
This instruction will install pysbs for your
default system python interpreter.
If your purpose is to use pysbs from the Designer python interpreter you have to append your PYTHONPATH system variable
with the parent pysbs directory path.
- extract (as a classic way) the content of /satinstallpath/Python\ API/Pysbs-2019.3.1.zip
- extraction result is a Pysbs-2019.3.1 directory
- append the path of this directory (Pysbs-2019.3.1) to the PYTHONPATH system variable
Another way (not really handy) is to append this parent directory (Pysbs-2019.3.1) directly in your python script thanks to:
import sys
sys.path.append("/satinstallpath/Python\ API/Pysbs-2019.3.1")
from pysbs import context
As you can see SAT deployment is very pipeline strategy dependent.
I hope these explanations clarified things.