'Python: How to fix an error of VCRUNTIME140.dll
I create a desktop application with python and in terms of codes it works fine. Then I use the CX_Freeze to get an exectuable file to work with it in any PC without installing anything and also it works but only on my PC. I want show you my setup.py file:
from cx_Freeze import setup, Executable
import sys
base = None
if sys.platform == "win32":
base = "Win32GUI"
executables = [Executable("general.py", base=base)]#, icon='accept.ico')]
#Renseignez ici la liste complète des packages utilisés par votre application
packages = ["idna", "__future__", "PyQt5","sys", "numpy", "cv2", "pyzbar", "validate_email", "urllib.request", "mysql.connector", "datetime", "face_recognition"]
options = {
'build_exe': {
'packages':packages,
'include_files':['icones','TEACH_images']
},
}
setup(
name = "bis",
options = options,
version = "1.0",
description = 'Voici mon programme',
executables = executables
)
I execute the command in terminal: python setup.py build. Like I say everything is working on my PC but I get the error in other PC: impossible d'executer le code car VCRUNTIME140.dll est introuvable So how to fix the error or should I use other method or I have to change something in my setup file
Solution 1:[1]
options = {
'build_exe': {
'packages':packages,
'include_files':['icones','TEACH_images'],
"include_msvcr": True
},
Your options parts should be like this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ertu?rul Çak?c? |
