python-magic WindowsError:[错误193]%1不是一个有效的Win32应用程序\ r
问题描述:
嗨我想在Windows 8上使用python-magic,但是当我尝试导入命令import magic
它给了我这个错误WindowsError: [Error 193] %1 is not a valid Win32 application\r
我已经尝试了Python 2.7.10的64位和32位版本,但是我总是得到这个错误。python-magic WindowsError:[错误193]%1不是一个有效的Win32应用程序 r
TNX
答
在这里找到它:https://github.com/ahupp/python-magic/issues/24k
Resolved this by installing the 64-bit version of Cygwin (http://cygwin.com/install.html) and copying the following list of DLLs from \bin to C:\Windows\System32:
cygwin1.dll
cygz.dll
cygmagic-1.dll
(Don't forget to rename it tomagic1.dll
)
同样的问题!你解决了吗? –