title: Can I exclude unnecessary imports after import all modules?
body: <p>I'm using <code>tkinter</code> package for GUI programming.</p>
  <p>Since I don't know what modules are in need during coding, I usually import all. (by typing <code>from tkinter import *</code>)</p>
  <p>But I found this could cause a problem when I turned a <code>.py</code> file into <code>.exe</code> file by using <code>pyinstaller</code>. The result file size was too large.</p>
  <p>To reduce the file size, I'm trying to edit the <code>.py</code> file by excluding unnecessary imported modules. There are lots of unused imports confirmed by pylint(it just warned me when I run <code>.py</code> file in terminal on Visual Studio Code). But how should I type the code to exclude these imports?</p>