Python pyinstaller linux, windows
Flayme -
Bonjour,
je souhaite créer des executables pour linux et windows.
Sur linux j'avais réussis avec pyinstaller mais je ne me rappelle plus comment j'avais fait.
Sur windows j'ai tester py2exe et pyinstaller mais sa ne marche pas.
J'utilise Linux 14.04 LTS (j'ai pas le droit de faire de mise à jour)
et Windows (j'ai pas les droits d'administrateur )
merci d'avance pour votre aide,
Flayme
- Pyinstaller linux to windows
- Clé d'activation windows 10 - Guide
- Montage video windows - Guide
- Windows ne démarre pas - Guide
- Windows movie maker - Télécharger - Montage & Édition
- Qwerty to azerty - Guide
2 réponses
Salut, « ça ne marche pas » n'aide en rien à déterminer ce que tu fais incorrectement.
Décris ton programme, et comment tu utilises pyinstaller, les erreurs s'il y en a lorsque tu tentes de créer ton exe, ce qu'il se passe, etc.
Sur linux, je ne sais si c'est indispensable de créer un exécutable sachant que de base ; généralement ; python3 est installé.
je viens de retester py2exe:
j'ai suivi se tutoriel: https://www.py2exe.org/index.cgi/Tutorial
(j'ai remplacer hello.py par test.py)
voilà l'erreur:
The `setup.py py2exe` command line interface is deprecated and
will be removed in the next major release.
Please adapt your code to use the new `py2exe.freeze` API.
Further information can be found at
https://github.com/py2exe/py2exe/blob/master/README.md
setup(console=['test.py'])
12 missing Modules
------------------
? __main__ imported from bdb, pdb
? _frozen_importlib imported from importlib, importlib.abc, zipimport
? _frozen_importlib_external imported from importlib, importlib._bootstrap, importlib.abc, zipimport
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
? _winreg imported from platform
? asyncio.DefaultEventLoopPolicy imported from -
? dummy.Process imported from multiprocessing.pool
? java.lang imported from platform
? org.python.core imported from copy, pickle
? os.path imported from os, pkgutil, py_compile, sysconfig, tracemalloc, unittest, unittest.util
? pep517 imported from importlib.metadata
? readline imported from cmd, code, pdb
Building 'dist\test.exe'.
error: [WinError 87] Paramètre incorrect.
meme erreur avec ce code:
import py2exe
py2exe.freeze(
console=["test.py"],
windows=[],
data_files=None,
zipfile='library.zip',
options={},
version_info={}
)