FileNotFoundError:[错误2]没有这样的文件或目录:'/ usr / bin / xvfb-run'

时间:2018-08-06 10:52:29

标签: django python-3.x macos xvfb

在Mac机上运行Django测试时出现此错误,

错误:

    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 696, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1540, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/xvfb-run'
  

如何在MAC Machine上安装xvfb-run?

我还安装了XQuartz并添加了路径,但是问题没有解决。

非常感谢。

0 个答案:

没有答案