It is recommended to install the latest python from the official website.
- The installation location is default at
Python.h is in folder:
- In addition, you need to add
python311_d.libas a dependency in your C++ project
- Add the folder
C:\Users\Administrator\AppData\Local\Programs\Python\Python311as the system environment path.
Or put python311_d.dll in the same folder as your generated exe. python311_d.dll is in folder
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.