playwright打包成exe

在环境变量中增加PLAYWRIGHT_BROWSERS_PATH,值为0
重新下载playwright 浏览器:playwright install
在要打包的文件夹执行了两条命令:playwright install chromium
pyinstaller -F run.py

你可能感兴趣的:(python)