Error message Missing required dependencies, import error: Missing required dependencies ['numpy'] while trying and freezing an executable
I am trying to create an executable program using python 3.6 and the only software I have found can do this cx_Freeze. However, I have a problem every time I run "python setup.py build" in CMD. I am getting an error when I try to open the application.
Missing required dependencies, import error: missing required dependencies ['numpy'] while trying and freezing an executable.
Here is my setup.py
import cx_Freeze
from cx_Freeze import setup
from cx_Freeze import Executable
import sys
import matplotlib
import pandas
import os
import os.path
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
base = None
if sys.platform == 'win32':
base = "Win32GUI"
executables = [cx_Freeze.Executable("EXE.py",icon = 'RomacLogo.ico', base=base)]
build_exe_options = {"packages": ["numpy"]}
cx_Freeze.setup(
name = "DAGM",
options = {"build.exe":{"packages":["tkinter", "matplotlib",'numpy', "numpy.lib.format", "pandas", "glob"], "include_files":["RomacLogo.ico"]}},
version = "0.01",
description = "Data Transfer and Analysis Application",
executables = executables
)
Are there any other freezing programs I could use to create the executable besides cx_freeze?
Any help would be greatly appreciated!
+3
source to share