Another possible workaround is to convince the third party library to load the GAMS version of libstdc++ by setting the LD_LIBRARY_PATH or the DYLD_LIBRARY_PATH to the GAMS system directory.
Code: Select all
#import pandas as pd from gams import * if __name__ == "__main__": ws = GamsWorkspace() # create an instance of GamsDatabase in order to make sure the shared library is loaded ws.add_database() # now it should be possible to import pandas import pandas as pd # ... continue with your actual code
All the mentioned solutions are just meant as workarounds. A better fix to the problem is to update the operating system to a newer version that comes with up-to-date system libraries.