Hello Elinor,
Please try Viorel’s suggestions and also kindly follow steps below to reconfigure the settings and rebuild your project to see if this works.
- Right-click the C++ project > Properties > Configuration Properties > C/C++ > General > Add the
include
directory to “Additional Include Directories”. The directory should be like thisC:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\include
. - Right-click the C++ project > Properties > Configuration Properties > Linker > General > Add the
libs
directory to “Additional Library Directories”. The directory should be like thisC:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\libs
.
Sincerely,
Tianyu