C++ embedding python type hints SyntaxError: invalid syntax?

Sorry, forgive me, my native language is not English and I may not have expressed myself very clearly.

I got a SyntaxError: invalid syntax error when embedding Python in a C++project and using the selenium library

1 Like

1 Like

20240727155057

1 Like

Thank you. Can someone help me

1 Like

the Python version is 3.12.4

1 Like

How did you embed Python? Can you show your build script? It might be using the wrong Python version.