cx_Freeze build error?

前端 未结 2 792
野趣味
野趣味 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: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.

提交回复
热议问题