试图安装eyed3,但它给了我这个错误:
>>> import eyed3 Traceback (most recent call last): File "<pyshell#8>",line 1,in <module> import eyed3 File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\eyed3\__init__.py",line 35,in <module> from .utils.log import log # noqa File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\eyed3\utils\__init__.py",line 27,in <module> import magic File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\magic.py",line 176,in <module> raise ImportError('Failed to find libmagic. Check your installation') ImportError: Failed to find libmagic. Check your installation
我试图用pip卸载并删除所有eyed3文件,然后重新安装它仍然给出了同样的错误.它也使用easy_install做同样的事情.
解决方法
在Windows上
你需要libmagic的DLL. @ julian-r已经上传了这个项目的一个版本,其中包含了对pypi:https://pypi.python.org/pypi/python-magic-bin/0.4.14的二进制文件
pip install python-magic-bin==0.4.14
适合我.