gpt4 book ai didi

python 程序不工作 apt-get install xvfb

转载 作者:太空宇宙 更新时间:2023-11-03 17:10:37 32 4
gpt4 key购买 nike

我正在尝试运行我下载的程序,但它不工作pycharm 返回以下内容

-----------------------------------------------------------------------------
Traceback (most recent call last):
File "fb-hfc.py", line 291, in <module>
display = Display(visible=0, size=(1600, 900))
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/display.py", line 33, in __init__
self._obj = self.display_class(
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/display.py", line 51, in display_class
cls.check_installed()
File "/home/apple/.local/lib/python2.7/site- packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed
ubuntu_package=PACKAGE).check_installed()
File "/home/apple/.local/lib/python2.7/site- packages/easyprocess/__init__.py", line 180, in check_installed
raise EasyProcessCheckInstalledError(self)
easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help']
OSError=[Errno 2] No such file or directory
Program install error!
You can install it in terminal:
sudo apt-get install xvfb

运行 apt-get install xvfb 没有帮助

该应用程序是 fb-hfc 谷歌,如果它的代码有帮助,你会找到它

最佳答案

输入命令:

pip3 install pyvirtualdisplay

或者这个命令:

pip install pyvirtualdisplay

关于python 程序不工作 apt-get install xvfb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38629389/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com