Mingus/lilypond on python



i可以导入mingus,但诸如mingus.extra.lilypond之类的sublibraries给我一个错误:

 import mingus.core.notes
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import mingus.core.notes
  File "C:UsersPharaohZzAppDataLocalProgramsPythonPython36libsite-packagesminguscorenotes.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:UsersPharaohZzAppDataLocalProgramsPythonPython36libsite-packagesmingusextra__init__.py", line 20, in <module>
    import lilypond
ModuleNotFoundError: No module named 'lilypond'

您可以首先卸载mingus(pip uninstall mingus)来解决此问题。然后从其源构建库。为此:

  1. 使用命令git clone https://github.com/bspaans/python-mingus
  2. 从GIT集线器下载文件
  3. 使用cd python-mingus输入目录。
  4. 最终使用命令python setup.py install安装它。这解决了我的问题。

相关内容

  • 没有找到相关文章

最新更新