 <p>From <a href="https://bitbucket.org/anthony_tuininga/cx_freeze/issues/32/cant-compile-cx_freeze-in-ubuntu-1304">cx_freeze/issues</a></p> <h1>Download</h1> <p>You need to <a href="https://pypi.python.org/pypi?:action=display&amp;name=cx_Freeze&amp;version=4.3.4">download the source code</a></p> <h1>For python 3.3 and 3.4:</h1> <ol> <li><p><code>sudo apt-get install python3-dev</code></p></li> <li><p><code>sudo apt-get install libssl-dev</code></p></li> <li><p>Open setup.py and change the line</p> <p><code>if not vars.get("Py_ENABLE_SHARED", 0):</code></p> <p>to</p> <p><code>if True:</code></p></li> <li><p><code>python3 setup.py build</code></p></li> <li><code>sudo python3 setup.py install</code></li> </ol> <h1>For python 2.7:</h1> <ol> <li><p><code>sudo apt-get install python-dev</code></p></li> <li><p><code>sudo apt-get install libssl-dev</code></p></li> <li><p>Open setup.py and change the line</p> <p><code>if not vars.get("Py_ENABLE_SHARED", 0):</code></p> <p>to</p> <p><code>if True:</code></p></li> <li><p><code>python setup.py build</code></p></li> <li><code>sudo python setup.py install</code></li> </ol>