在linux系统(Deepin)下遇到的错误;
使用root用户会报
zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
使用root用户报错
Could not find QtWebEngineProcess
详细的报错还有一个relocation error,然后指向的位置是用户目录下的
/home/用户/.local//lib/python3.7/site-packages/PyQt5/Qt/libexec
我看了一下目录
/usr/local/lib/python3.7/dist-packages/PyQt5/Qt/libexec
里面是有QtWebEngineProcess的,于是复制到
/home/用户/.local//lib/python3.7/site-packages/PyQt5/Qt/libexec
运行会报resources的错误,跟上一个错误差不多,于是把整个PyQt5目录都拷贝过来,运行没有问题了
sudo cp -r /usr/local/lib/python3.7/dist-packages/PyQt5/ /home/<user>/.local/lib/python3.7/site-packages/