1

如果这可能不适合发布我的问题,我深表歉意。我最近不得不在联想 Yoga 910 笔记本电脑上更新 Windows 10 系统。系统更新后,我成功安装了 Python 3.7.2,我主要将它与音乐作曲包Abjad一起使用。

Abjad 软件包的安装成功,并且该软件包的所有必需组件似乎都已成功安装并可从终端调用。但是,当我编译它时,我收到以下错误消息:

   Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import abjad
>>> note = abjad.Note()
>>> abjad.show(note)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\top\show.py", line 51, in show
    result = abjad.persist(argument).as_pdf(**keywords)
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\PersistenceManager.py", line 234, in as_pdf
    **keywords
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\PersistenceManager.py", line 67, in as_ly
    lilypond_file = illustrate_function(**keywords)
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\core\Component.py", line 118, in __illustrate__
    lilypond_file = abjad.LilyPondFile.new(self)
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondFile.py", line 990, in new
    use_relative_includes=use_relative_includes,
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondFile.py", line 147, in __init__
    token = LilyPondVersionToken()
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondVersionToken.py", line 27, in __init__
    version_string = abjad_configuration.get_lilypond_version_string()
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\AbjadConfiguration.py", line 412, in get_lilypond_version_string
    proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
>>>

我认为我遇到的问题不一定与上述 Python 包安装有关,因为相同的包在 Linux 和 Mac 系统上编译得很好。事实上,该软件包在更新之前在 Windows 上运行良好。

虽然我已经在相关的 Abjad 论坛网站上询问过这个问题,但我想知道这个列表中的一些具有更广泛 Windows-Python 背景的人是否能够阅读上述错误消息并为我指明正确的方向?是不是我遇到的问题更像是 IT 问题,或者可能是缺少正确的 Windows 设置?

谢谢!

4

1 回答 1

1

重置电脑解决了这个问题。我仍然不确定问题的原因是什么,以及为什么 Python 不想更早地编译包。

我很高兴有机会提出这个问题。

于 2019-01-29T00:06:27.637 回答