cx_Freeze build error?

前端 未结 2 790
野趣味
野趣味 2020-12-20 18:58

I am trying to create a binary from a python,flask and boto3 app. I am having trouble running the pip install cx_Freeze command too work. I am getting the follo

相关标签:
2条回答
  • 2020-12-20 19:43

    pip never installs system libraries, it only concerns itself with Python libs.

    It seems you need to install zlib before installing cx_Freeze.

    Another tool to generate binaries is PyInstaller.

    0 讨论(0)
  • 2020-12-20 19:52

    Just do

    sudo apt install zlib1g-dev
    

    I was trying to install cx-freeze to convert some python code to an exe but the problem was /usr/bin/ld: cannot find -lz just like you. The file being fetched is compressed (cx_Freeze-5.1.1.tar.gz) so you need zlib. Of course use pip3 for python3.

    0 讨论(0)
提交回复
热议问题