cx_Freeze build error?

女生的网名这么多〃 提交于 2019-11-29 14:37:06
Mwa Joe

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!