Je suis en train de construire un exe d'un programme en utilisant cx_freeze. J'ai mentionné tensorflow dans les paquets d'inclusion dans mon fichier setup.py mais quand je le construis il montre l'erreur mentionnée plus tard. J'utilise python 3.6 sur Windows 10.Erreur Tensorflow lors de la construction de l'exe en utilisant cx_Freeze
J'ai essayé de désinstaller et re installer tensorflow mais je reçois cette même erreur
Chaque fois que je lance construire python setup.py je reçois une erreur
C'est l'erreur suivante je reçois
Merci beaucoup
hdf5 is not supported on this machine (please install/reinstall h5py for optimal experience)
curses is not supported on this machine (please install/reinstall curses for an optimal experience)
Scipy not supported!
running build
running build_exe
Traceback (most recent call last):
File "setup.py", line 31, in <module>
executables = [cx_Freeze.Executable("Final.py",base=base)]
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\dist.py", line 349, in setup
distutils.core.setup(**attrs)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\dist.py", line 219, in run
freezer.Freeze()
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\freezer.py", line 621, in Freeze
self.finder = self._GetModuleFinder()
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\freezer.py", line 340, in _GetModuleFinder
finder.IncludePackage(name)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\finder.py", line 655, in IncludePackage
self._ImportAllSubModules(module, deferredImports)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\finder.py", line 287, in _ImportAllSubModules
recursive)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\finder.py", line 287, in _ImportAllSubModules
recursive)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\finder.py", line 287, in _ImportAllSubModules
recursive)
File "C:\Users\Jayesh Gupta\AppData\Local\Programs\Python\Python36\lib\site-packages\cx_Freeze\finder.py", line 282, in _ImportAllSubModules
raise ImportError("No module named %r" % subModuleName)
ImportError: No module named 'tensorflow.contrib.ios_examples.benchmark.benchmark.xcodeproj'
Bonjour, bienvenue sur Stackoverflow! Je vous recommande de prendre le [tour de bienvenue] (https://stackoverflow.com/tour) pour connaître votre chemin ici (et gagner votre premier badge aussi;)). Aussi pour améliorer les chances d'obtenir des réponses utiles s'il vous plaît vérifier [comment demander] (https://stackoverflow.com/help/asking) et aussi comment créer [exemples complets, minimaux et vérifiables] (https: // stackoverflow .com/help/mcve). S'il vous plaît montrer le code qui vous donne le problème – DarkCygnus