Cx_freeze Build Error?
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 following error : It see
Solution 1:
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.
Solution 2:
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.
Post a Comment for "Cx_freeze Build Error?"