Unable to get python embedded to work with zip'd library

前端 未结 4 1891
一向
一向 2021-02-09 10:19

I\'m trying to embed python, and provide the dll and a zip of the python libraries and not use any installed python. That is, if a user doesn\'t have python, I want my code to

4条回答
  •  春和景丽
    2021-02-09 11:13

    I believe your original problem is that you placed the folders in your python zip, when you should place the contents of the DLLs and Lib folders into the python zip.

    Instead of this:

    python27.zip
      DLLs
        *.*
      Lib
        *.*
    

    You should have:

    python27.zip
      *.* from DLLs
      *.* from Lib
    

提交回复
热议问题