subprocess.Popen(): OSError: [Errno 8] Exec format error in python?

前端 未结 7 2003
余生分开走
余生分开走 2020-12-06 09:07

Yesterday, I wrote and ran a python script which executes a shell using subprocess.Popen(command.split()) where command is string whic

相关标签:
7条回答
  • 2020-12-06 09:42

    This can also happen if the binary is not meant to run on your system.

    I'm on OSX, but the binary I was running is not meant for OSX, as I saw from using file path/to/binary:

    webui/bin/wkhtmltopdf: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=b6566a9e44c43a0eebf18d8c1dc6cb616801a77e, stripped
    
    0 讨论(0)
提交回复
热议问题