Python scripting & libraries

Hi all, I've seen we can use python scripts in Surpac now, which is great as it seems easier to approach than tcl. However, I don't know how we can easily add packages to the environment. Can you detail the procedure to locally install for example pandas to process dataframes?

Comments 1
GB
GB 2026-10-22

Hi @JD there are a few things we can answer here... 

  1. In the Surpac 2027 release (scheduled for release on 20th November 2026) we will include an installer for Python within the Surpac install. This will include a wide number of public libraries (over 100) such as Pandas, NumPy, SciPy, Shapely...
  2. If you are using Surpac 2026 Refresh 2 and used the standard installation directory then your python install should be located in "C:/Program Files/GEOVIA/Surpac/792_x64/x64/bin/PythonRuntime/python.exe". To add libraries to this build you can use PIP but you must direct it to the correct instance in windows cmd.

    The workflow should be 

    1. Open Command Prompt from Windows.
    2. Run (you may need to do this as admin)
      1. C:\Program Files\GEOVIA\Surpac\792_x64\x64\bin\PythonRuntime\python.exe" -m pip install pandas

This should then install any library you need along with the pre-requisites (such as NumPy).