8.6.3. Using Embeddable Python on WindowsΒΆ

Note

It is recommended to use the Windows installer packages of Python. The installer supports a per-user installation and does not require elevated privileges.

If your environment does not allow per-user installation of the Windows installer packages of Python, then you can configure the Windows Embeddable packages to work with the Axivion Suite.

You can get the Windows Embeddable package (64-bit) from the official site https://www.python.org/ .

Extract the ZIP file somewhere convenient on your file system (in the following example D:\Tools - adjust as needed) and point the environment variable BAUHAUS_PYTHON to the full absolute path of the python.exe (including python.exe itself at the end and, as usual: no quotes around Windows environment variables even if the value contains spaces):

cd /D D:\Tools
curl -O https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip
unzip -d python-3.10.11-embed-amd64 python-3.10.11-embed-amd64.zip
set "BAUHAUS_PYTHON=D:\Tools\python-3.10.11-embed-amd64\python.exe"
del python-3.10.11-embed-amd64.zip

Locate the file python310._pth (for a different version of Python it is called differently according to the Python version, e.g. python311._pth or python312._pth, etc.) inside the extracted folder, open it in a text editor and add the following line at the very top before the existing content (whereas the part D:\Tools\Bauhaus should point to the absolute path of your Axivion Suite installation):

D:\Tools\Bauhaus\lib\scripts

Now you should be able to successfully run axivion_support and you should see your Embeddable Python being used.

Note

You may also want to consider Using uv managed Python instead.