Ich versuche setuptools unter Windows zu installieren.
Die Dokumentation sagt, ich sollte ez_setup.py ausführen.
Also tat ich, und ich bekomme die folgende Ausgabe:Python installiert setuptools, ez_setup.py Fehler
Extracting in c:\users\ut601039\appdata\local\temp\tmpf6a2mb
Now working in c:\users\ut601039\appdata\local\temp\tmpf6a2mb\setuptools-1.0
Installing Setuptools
Something went wrong during the installation.
See the error message above.
Traceback (most recent call last):
File "D:\Python\Setuptools\ez_setup.py", line 357, in <module>
sys.exit(main())
SystemExit: 2
Die Fehlermeldung nicht sehr informativ ist. Ein Blick in den Code fand ich:
if not _python_cmd('setup.py', 'install', *install_args):
log.warn('Something went wrong during the installation.')
log.warn('See the error message above.')
# exitcode will be 2
return 2
ich _python_cmd()
ging und gefunden:
def _python_cmd(*args):
args = (sys.executable,) + args
return subprocess.call(args) == 0
Ich fand, dass subprocess.call(args)
Renditen 1 statt der erwarteten 0.
Vergiss ich sagte irgendetwas. 'stdout = STDOUT' macht keinen Sinn und das Verhalten, das ich erreichen wollte, ist der Standard. Entschuldigung, ich kann nicht helfen. – delnan