我可以导入mingus但是像mingus.extra.lilypond这样的子库给我一个错误:
import mingus.core.notes
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import mingus.core.notes
File "C:\Users\PharaohZz\AppData\Local\Programs\Python\Python36\lib\site-packages\mingus\core\notes.py", line 29, in <module>
from mt_exceptions import NoteFormatError, RangeError, FormatError
ModuleNotFoundError: No module named 'mt_exceptions'
或
import mingus.extra.lilypond
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import mingus.extra.lilypond
File "C:\Users\PharaohZz\AppData\Local\Programs\Python\Python36\lib\site-packages\mingus\extra\__init__.py", line 20, in <module>
import lilypond
ModuleNotFoundError: No module named 'lilypond'
答案 0 :(得分:0)
您可以通过先卸载Mingus(pip uninstall mingus
)来解决此问题。
然后从源代码构建库。为此:
git clone https://github.com/bspaans/python-mingus
从git hub下载文件。cd python-mingus
输入目录。python setup.py install
安装它。
这为我解决了这个问题。