web自动化工具playwright,新建项目,已经引入from playwright.sync_api import sync_playwright执行脚本时,报错ModuleNotFoundError: No module named 'playwright'
安装playwright时,报错,使用豆瓣源时,也报错如下
pip install -i playwright https://pypi.douban.com/simple
ERROR: Cannot determine archive format of C:\Users\admin\AppData\Local\Temp\pip-req-build-06e7d05h
pip install -i https://pypi.douban.com/simple --trusted-host pypi.douban.com playwright
通过设置 --trusted-host pypi.douban.com 信任该镜像源。