0

PyInstaller previously worked very well. However, after installing Jupyter, the new generated exe files by PyInstaller did not work,for instance, warning no module named Tkinter. If uninstall Jupyter and generate the exe file by PyInstaller again, the new exe file works well.

Is there any conflict between the two? How to solve this problem? I want to keep Jupyter installed.

2
  • Try installing Tkinter tkdocs.com/tutorial/install.html
    – SAMO
    Commented Jun 27, 2016 at 20:24
  • Tkinter has been included in Python. After uninstalling Jupyter, the new exe file generated from the same py file works well, no warning 'no module named Tkinter'.
    – Tungfei
    Commented Jun 27, 2016 at 20:29

1 Answer 1

1

Solved by changing the modules' order.

Old order: from Tkinter import * import tkFileDialog import matplotlib.pyplot as plt import numpy as np import PIL.Image import pylab from matplotlib.colors import LightSource, Normalize,LinearSegmentedColormap

New order: import matplotlib.pyplot as plt import numpy as np import PIL.Image import pylab from matplotlib.colors import LightSource, Normalize,LinearSegmentedColormap from Tkinter import * import tkFileDialog

Not the answer you're looking for? Browse other questions tagged or ask your own question.