Calling Python from C++
Click the above“Mechanical and Electronic Engineering Technology” to follow us 1. Configure Header Files Add the include directory under the Python installation directory to the header file directory. The operation path in Visual Studio 2022 is: Properties –> C/C++ -> General-> Additional Include Directories C:\Users\AppData\Local\Programs\Python\Python39\include 2. Configure lib Directory Add Python39.lib to the compilation link. … Read more