apt-get install zlib1g-dev,安装完成后,运行python setup.py build依旧报错,如下:
Traceback (most recent call last):
File "setup.py", line 168, in <module>
finder = cx_Freeze.ModuleFinder(bootstrap = True)
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 54, in __init__
self._AddBaseModules()
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 81, in _AddBaseModules
self.IncludeModule("zlib")
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 526, in IncludeModule
namespace = namespace)
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 274, in _ImportModule
raise ImportError("No module named %r" % name)
Traceback (most recent call last):
File "setup.py", line 168, in <module>
finder = cx_Freeze.ModuleFinder(bootstrap = True)
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 54, in __init__
self._AddBaseModules()
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 81, in _AddBaseModules
self.IncludeModule("zlib")
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 526, in IncludeModule
namespace = namespace)
File "/root/cx_Freeze-4.3.1/cx_Freeze/finder.py", line 274, in _ImportModule
raise ImportError("No module named %r" % name)