2013-11-24 46 views
1

我的目標是將py文件轉換爲exe文件。使用py2exe將python轉換爲exe

我有一個使用以下庫Python文件:

import matplotlib 
matplotlib.use('TkAgg') 
import numpy as np 
import scipy import signal 
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg 
from matplotlib.figure import Figure 
import Tkinter as Tk 
import tkFileDialog 

我使用的安裝文件:

from distutils.core import setup 
import py2exe 
setup(
     console =['name of my python file'], 
) 

我曾跟隨YouTube上的教程,並已成功地創建一個exe文件。 但是當我運行它時,我獲得了以下反饋。

Could not find the matplotlib data files. 

您能否告訴我會發生什麼情況併爲我提供解決方案? 非常感謝。

+1

您是否檢查'matplotlib'是否可以打包到exe文件中?有一些模塊不能通過p2exe放入exe文件。 – AHuman

+1

我不記得其他問題的確切位置,但我很確定這是重複的。你可能想看看。 –

回答