pyinstaller error

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
toper
User
Beiträge: 73
Registriert: Freitag 13. April 2018, 14:37

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.
Jankie
User
Beiträge: 592
Registriert: Mittwoch 26. September 2018, 14:06

Welche Python Version nutzt du und was kommt als Ausgabe wenn du

Code: Alles auswählen

import enum
print(enum.__file__)
ausführst?
toper
User
Beiträge: 73
Registriert: Freitag 13. April 2018, 14:37

Ich benutze python 3.7.4

Die Ausgabe lautet

C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37\lib\enum.py
Jankie
User
Beiträge: 592
Registriert: Mittwoch 26. September 2018, 14:06

versuch mal in der Commandozeile

Code: Alles auswählen

pip uninstall -y enum34
toper
User
Beiträge: 73
Registriert: Freitag 13. April 2018, 14:37

Vielen Dank,
jetzt funktioniert es.

Was genau macht enum eigentlich?
Benutzeravatar
__blackjack__
User
Beiträge: 13079
Registriert: Samstag 2. Juni 2018, 10:21
Wohnort: 127.0.0.1
Kontaktdaten:

@toper: Welche Frage(n) bleiben denn nach der Lektüre der Dokumentation von dem Modul noch übrig?
„All religions are the same: religion is basically guilt, with different holidays.” — Cathy Ladman
Antworten