Seite 1 von 1

pyinstaller error

Verfasst: Dienstag 10. September 2019, 14:40
von toper
Hallo zusammen,
ich möchte mir unter Windows 7 pyinstaller installieren.
Ich habe bereits mehrere möglichkeiten ausprobiert:
pip install pyinstaller
pip install PyInstaller
und auch in mit cd C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37
und dann
python -m pip install ...

allerdings komm jedesmal diese Fehlermeldung:

Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages ... 7ba3639548
3a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\tobias_arbeit\appdata\local\programs\python\python37\pytho
n.exe' 'c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\site-p
ackages\pip' install --ignore-installed --no-user --prefix 'C:\Users\TOBIAS~1\Ap
pData\Local\Temp\pip-build-env-ryv6jds7\overlay' --no-warn-script-location --no-
binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40
.8.0' wheel
cwd: None
Complete output (14 lines):
Traceback (most recent call last):
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\runp
y.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\runp
y.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\site
-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\site
-packages\pip\_internal\__init__.py", line 4, in <module>
import locale
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\loca
le.py", line 16, in <module>
import re
File "c:\users\tobias_arbeit\appdata\local\programs\python\python37\lib\re.p
y", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\tobias_arbeit\appdata\l
ocal\programs\python\python37\python.exe' 'c:\users\tobias_arbeit\appdata\local\
programs\python\python37\lib\site-packages\pip' install --ignore-installed --no-
user --prefix 'C:\Users\TOBIAS~1\AppData\Local\Temp\pip-build-env-ryv6jds7\overl
ay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https:/
/pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command o
utput.

Re: pyinstaller error

Verfasst: Dienstag 10. September 2019, 14:45
von Jankie
Welche Python Version nutzt du und was kommt als Ausgabe wenn du

Code: Alles auswählen

import enum
print(enum.__file__)
ausführst?

Re: pyinstaller error

Verfasst: Dienstag 10. September 2019, 14:47
von toper
Ich benutze python 3.7.4

Die Ausgabe lautet

C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37\lib\enum.py

Re: pyinstaller error

Verfasst: Dienstag 10. September 2019, 14:53
von Jankie
versuch mal in der Commandozeile

Code: Alles auswählen

pip uninstall -y enum34

Re: pyinstaller error

Verfasst: Dienstag 10. September 2019, 14:55
von toper
Vielen Dank,
jetzt funktioniert es.

Was genau macht enum eigentlich?

Re: pyinstaller error

Verfasst: Dienstag 10. September 2019, 16:04
von __blackjack__
@toper: Welche Frage(n) bleiben denn nach der Lektüre der Dokumentation von dem Modul noch übrig?