<div>I want build a python source to .exe file.</div>
<div>I use the py2exe and the script file I wrote as below:</div>
<div>
<p>from distutils.core import setup<br>import py2exe</p>
<p>setup(windows=["main.py"],<br> name='palaver',<br> description="palaver is a p2p software",<br> version='0.05',<br> )</p>
<p>it build rightly,But when I run the executable file, a problem have turn out:</p>
<p>Traceback (most recent call last):<br>  File "main.py", line 20, in ?<br>  File "gtkFE\__init__.pyc", line 18, in ?<br>  File "gtkFE\gtkDialogs.pyc", line 17, in ?<br>  File "gtk\__init__.pyc", line 45, in ?
<br>  File "gtk\_gtk.pyc", line 12, in ?<br>  File "gtk\_gtk.pyc", line 10, in __load<br>ImportError: No module named cairo.</p>
<p>The cairo module have been installed in my computer.And I can run my program from the python file.</p>
<p>What is wrong with this problem,Please help me,a lot of thanks!</p></div>