本文介绍了pip安装eyeD3模块.找不到libmagic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图安装eyed3,但它给了我这个错误:

Trying to install eyed3 but it's giving me this error:

>>> 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安装:

我试图用pip卸载并删除所有eyed3文件,然后重新安装,但仍然出现相同的错误.它也使用easy_install做同样的事情.

I tried to uninstall with pip and delete all the eyed3 files, then re-install and it still gave the same error. It also does the same thing with easy_install.

推荐答案

在Windows上

您将需要DLL来实现libmagic. @ julian-r已将该项目的包含二进制文件的版本上传到pypi: https://pypi.python.org/pypi/python-magic-bin/0.4.14

You'll need DLLs for libmagic. @julian-r has uploaded a version of this project that includes binaries to pypi: https://pypi.python.org/pypi/python-magic-bin/0.4.14

pip install python-magic-bin==0.4.14

为我工作.

这篇关于pip安装eyeD3模块.找不到libmagic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 17:39