如果这不是发布我的问题的正确位置,请向我道歉。我最近不得不在Lenovo 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设置?
谢谢!
答案 0 :(得分:1)
重置PC解决了该问题。我仍然不确定问题的原因是什么,为什么Python不想更早地编译该软件包。
我很高兴有机会提出问题。