Back to Browse

Calling Python From C++ Using Visual Studio

6.0K views
Apr 5, 2022
47:30

This video walks the student through setting up Visual Studio to develop a C++ application that calls Python. For more information please contact [email protected] Code: https://github.com/egregori3/cpp_snippets/blob/master/CallingPythonFromCPP.cc 00:00 Installing Visual Studio and Python 02:38 Where to find the Python files on your PC after installation 04:33 Creating a C++ console project in Visual Studio 08:20 Where is my exe? An overview of a Visual Studio C++ project directory 16:03 Configuring the C++ project to call Python 21:00 Debugging build errors 22:00 Cannot find Python.h 24:40 Cannot find Python library 27:00 Executing your code 28:30 Cannot find DLL 31:00 Cannot find Python file 32:00 Creat PythonFile.txt and save as PythonFile.py 33:40 Editing the Python file - make sure spaces instead of tabs 37:45 Overview of C++ to Python API 44:37 Hints and tips

Download

1 formats

Video Formats

360pmp464.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Calling Python From C++ Using Visual Studio | NatokHD