在python中使用pyvirtualdisplay,提示FileNotFoundError: [WinError 2] 系统找不到指定的文件。
```python
from pyvirtualdisplay import Display
#创建并启动虚拟显示屏
display = Display(visible=0,size = (800,600))
display.start()
# 在这里插入需要运行的应用程序的代码
#关闭虚拟显示屏
display.stop()
完整错误
Traceback (most recent call last):
File "D:\LearningMaterials\py_study\NumPyJourney\pyvirtualdisplay_learn.py", line 3, in <module>
display = Display(visible=0,size = (800,600))
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\site-packages\pyvirtualdisplay\display.py", line 54, in __init__
self._obj = cls(
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\site-packages\pyvirtualdisplay\xvfb.py", line 44, in __init__
AbstractDisplay.__init__(
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\site-packages\pyvirtualdisplay\abstractdisplay.py", line 85, in __init__
helptext = get_helptext(program)
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\site-packages\pyvirtualdisplay\util.py", line 13, in get_helptext
p = subprocess.Popen(
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\19031\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。