ModuleNotFoundError: No module named 'graiax'
luckyhug opened this issue · 3 comments
似乎在requirements里面包没有给全?
运行时报一样的错误
$ python main.py
Traceback (most recent call last):
File "/media/chi/extension/develop/EX-chatGPT/chatGPTEx/main.py", line 8, in
from graiax.text2img.playwright.plugins.code.highlighter import Highlighter
File "/home/chi/miniconda3/lib/python3.10/site-packages/graiax/text2img/playwright/init.py", line 3, in
from .renderer import HTMLRenderer, PageOption, ScreenshotOption
File "/home/chi/miniconda3/lib/python3.10/site-packages/graiax/text2img/playwright/renderer.py", line 8, in
from graiax.playwright import PlaywrightBrowser
ModuleNotFoundError: No module named 'graiax.playwright'
graiax.playwright已经安装了
找到问题了
pip install graiax-playwright==0.2.1
如果安装的pip install graiax-playwright 是0.2.2就会报找不到的错误。
请问graiax包要如何安装?网上似乎没找到
如果安装了graiax-playwright仍然报错, 需要再安装 graiax-text2img-playwright