visual-chatgpt icon indicating copy to clipboard operation
visual-chatgpt copied to clipboard

ModuleNotFoundError: No module named 'gradio'

Open qingqingtina opened this issue 1 year ago • 12 comments

I have installed the gradio module, but it still reporting errors as title

qingqingtina avatar Mar 16 '23 12:03 qingqingtina

Hi @qingqingtina, Can you provide more details? Such as the gradio version, and can you list and find the gradio via pip list in your conda environment.

Wang-Xiaodong1899 avatar Mar 16 '23 13:03 Wang-Xiaodong1899

check this, conda activate visgpt , I have a the same issue before, I found i forget to actiate conda.

AI-Robot-Morris avatar Mar 16 '23 13:03 AI-Robot-Morris

Hi @qingqingtina, Can you provide more details? Such as the gradio version, and can you list and find the gradio via pip list in your conda environment.

the gradio version is 3.20.1,I just follow the quick start of the read.md,An error was reported when running the command python visual_chatgpt.py --load ImageCaptioning_cpu,Text2Image_cpu,mac os

qingqingtina avatar Mar 16 '23 15:03 qingqingtina

image

qingqingtina avatar Mar 16 '23 15:03 qingqingtina

image

qingqingtina avatar Mar 16 '23 15:03 qingqingtina

Odd! The latest version 3.20.1 seems to have no problems. What is the chip of your Mac?

Wang-Xiaodong1899 avatar Mar 16 '23 15:03 Wang-Xiaodong1899

Odd! The latest version 3.20.1 seems to have no problems. What is the chip of your Mac?

M1

qingqingtina avatar Mar 16 '23 15:03 qingqingtina

Hey @Wang-Xiaodong1899 Thanks for all your help

I've the same problem as @qingqingtina . I'm using mac m1 as well

(visgpt) Personal@MacBook visual-chatgpt % conda activate visgpt

(visgpt) Personal@MacBook visual-chatgpt % python visual_chatgpt.py --load ImageCaptioning_cpu,Text2Image_cpu

Traceback (most recent call last): File "visual_chatgpt.py", line 2, in import gradio as gr ImportError: No module named gradio

(visgpt) Personal@MacBook visual-chatgpt % pip list

Captura de pantalla 2023-03-16 a las 17 09 56

albertoecf avatar Mar 16 '23 16:03 albertoecf

I encounter this error before I used "pip install gradio" in Mac M1 to fix it https://copypaste.guru/WhereIsMyPythonModule/how-to-fix-modulenotfounderror-no-module-named-gradio

wastu01 avatar Mar 16 '23 17:03 wastu01

I encounter this error before I used "pip install gradio" in Mac M1 to fix it https://copypaste.guru/WhereIsMyPythonModule/how-to-fix-modulenotfounderror-no-module-named-gradio

Hey @wastu01 thanks for answering! I've tried that (also pip uninstall gradio and install it again) but I receive the same problem 😢

(visgpt) Personal@MacBook visual-chatgpt % python visual_chatgpt.py Traceback (most recent call last): File "visual_chatgpt.py", line 2, in import gradio as gr ImportError: No module named gradio

albertoecf avatar Mar 16 '23 19:03 albertoecf

Try use "python3 visual_chatgpt.py" instead of python

jenyzzn avatar Mar 17 '23 02:03 jenyzzn

Try use "python3 visual_chatgpt.py" instead of python

great, solved!

slightlycool avatar Apr 11 '23 01:04 slightlycool