Django FileNotFoundError:[Errno 2]没有这样的文件或目录:'/usr/bin/xvfb运行';
我在mac机器上运行Django测试时出错 错误:Django FileNotFoundError:[Errno 2]没有这样的文件或目录:'/usr/bin/xvfb运行';,django,python-3.x,macos,xvfb,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/python
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机器上安装xvfb
我还安装了XQuartz并添加了路径,但问题没有解决。似乎有人试图在/usr/bin中找到xvfb run,所以您不需要将其添加到路径中。因此,您需要找到哪个模块希望xvfb运行在/usr/bin中。
\uu因此您需要找到哪个模块希望xvfb运行在/usr/bin中。
我已经尝试过,但找不到它。