用户工具

站点工具


python-files:py2exe-matplotlib

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

python-files:py2exe-matplotlib [2011/07/14 15:15] (当前版本)
行 1: 行 1:
 +====== py2exe打包matplotlib发布程序 ======
  
 +使用py2exe打包发布matplotlib应用程序其实很简单,只需要将matplotlib的数据文件包含在内就可以了。
 +
 +在setup.py文件中加入 data_files=matplotlib.get_py2exe_datafiles() 语句。
 +
 +<code python>
 +import matplotlib
 +...
 +setup(
 +    ...
 +    data_files=matplotlib.get_py2exe_datafiles(),​
 +)
 +</​code>​
 +
 +===== 参考 =====
 +  * http://​www.py2exe.org/​index.cgi/​MatPlotLib
python-files/py2exe-matplotlib.txt · 最后更改: 2011/07/14 15:15 (外部编辑)