[英]python program not working apt-get install xvfb
i'm trying to run a program that i downloaded but it isn't working pycharm returns the following 我正在尝试运行我下载的程序,但无法正常工作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
running apt-get install xvfb doesn't help 运行apt-get install xvfb并没有帮助
the app is fb-hfc google it you'll find it if its code help 该应用程序是fb-hfc google,如果代码帮助您会找到它
type this command: 输入以下命令:
pip3 install pyvirtualdisplay
or this command: 或此命令:
pip install pyvirtualdisplay
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.