C++ with Python embedding: crash if Python not installed

后端 未结 4 1036
猫巷女王i
猫巷女王i 2020-11-29 19:18

I\'m developing on Windows, and I\'ve searched everywhere without finding anyone talking about this kind of thing.

I made a C++ app on my desktop that embedded Pytho

4条回答
  •  粉色の甜心
    2020-11-29 20:02

    A zip of the Python standard library worked for me with Python27.

    I zipped the contents of Lib and dll, and made sure there was no additional python27-subfolder or Lib or dll subfolder. i.e. just a zip named python27.zip containing all the files.

    I copied that zip and the python27.dll alongside the executable.

提交回复
热议问题