Hi,
It is recommended to install the latest python from the official website.
- The installation location is default at
C:\Users\Administrator\AppData\Local\Programs\Python\Python311
Python.h is in folder:
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\include
- In addition, you need to add
python311_d.lib
as a dependency in your C++ project
Folder:
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\libs
- Add the folder
C:\Users\Administrator\AppData\Local\Programs\Python\Python311
as the system environment path.
Or put python311_d.dll in the same folder as your generated exe. python311_d.dll is in folder C:\Users\Administrator\AppData\Local\Programs\Python\Python311
.
Best regards,
Minxin Yu
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.