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

No module named 'gradio' error

Open ind1-go opened this issue 2 years ago • 22 comments

when I run visual_chatgpt.py, I get the following error: "import gradio as gr ModuleNotFoundError: No module named 'gradio'" Could you please help me with possible solution.

ind1-go avatar Mar 10 '23 19:03 ind1-go

@ind1-go Are you able to install the requirements.txt? Seems like your installation failed.

rupeshs avatar Mar 10 '23 20:03 rupeshs

I got the same error. I installed all the requirements.

gulfam7 avatar Mar 10 '23 21:03 gulfam7

same here, on colab.

ModuleNotFoundError: No module named 'gradio'

payamsaremi avatar Mar 10 '23 23:03 payamsaremi

make sure gradio installed properly, using pip list to checkout whether the gradio is installed, if there was not, then try pip install gradio.

K-tang-mkv avatar Mar 10 '23 23:03 K-tang-mkv

same here, on colab.

ModuleNotFoundError: No module named 'gradio'

@payamsaremi Please refer my colab implementation it will work, https://github.com/rupeshs/visual-chatgpt/tree/add-colab-support

rupeshs avatar Mar 10 '23 23:03 rupeshs

@payamsaremi If you run it on the Colab, your can try to run my Colab notebook Open 2k image generation in Colab

K-tang-mkv avatar Mar 11 '23 09:03 K-tang-mkv

Using "python3 visual_chatgpt.py" instead of python worked for me.

thomas-yan avatar Mar 11 '23 14:03 thomas-yan

~/install/conda/anaconda3/bin/pip install -r requirement.txt
~/install/conda/anaconda3/bin/python visual_chatgpt.py

worked for me.

Valdanitooooo avatar Mar 11 '23 16:03 Valdanitooooo

I have the same problem. In pip list, gradio appears. But when i run the code the error stills. Trying options. If i find solution, i will post it here!

franfurey avatar Mar 12 '23 22:03 franfurey

~/install/conda/anaconda3/bin/pip install -r requirement.txt
~/install/conda/anaconda3/bin/python visual_chatgpt.py

worked for me.

thank you, it's useful for me

tangan666 avatar Mar 14 '23 22:03 tangan666

~/install/conda/anaconda3/bin/pip install -r requirement.txt
~/install/conda/anaconda3/bin/python visual_chatgpt.py

worked for me.

please how do i run this

astro1df avatar Apr 06 '23 18:04 astro1df

find / -name 'anaconda3'use this command to find the path where you install your anaconda3 just use pip and python in xxx/conda/anaconda3/bin

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年4月7日(星期五) 凌晨2:23 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [microsoft/visual-chatgpt] No module named 'gradio' error (Issue #51)

~/install/conda/anaconda3/bin/pip install -r requirement.txt ~/install/conda/anaconda3/bin/python visual_chatgpt.py
worked for me.

please how do i run this

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

tangan666 avatar Apr 07 '23 02:04 tangan666

Using "python3 visual_chatgpt.py" instead of python worked for me.

same here , probably some bad link around

rodrigolopezguerra avatar Apr 08 '23 14:04 rodrigolopezguerra

please how do i run this

conda info --envs

Valdanitooooo avatar Apr 09 '23 02:04 Valdanitooooo

If you are running it on your system then pip install gradio should work. If not, then try to update your pip via pip install --upgrade pip and then again try pip install gradio. I hope it will work.

ChinmayBH avatar May 08 '23 11:05 ChinmayBH

pip install gradio

This worked for me. Thanks!

timblagbrough avatar Aug 23 '23 16:08 timblagbrough

pip install gradio --user

satruxag avatar Sep 25 '23 10:09 satruxag

Same issue here, I've tried installing multiple ways, no matter how many times I install it, I still get ModuleNotFoundError: No module named 'gradio'. This happens trying to run a script using python3.12.... However, when I run the same script with python3... it works.

Bus42 avatar Jan 28 '24 07:01 Bus42

And in my case the error was brought by executing python kohya_gui.py "$@" and was solved with python3.10 kohya_gui.py "$@" version of command.

PaulStogov avatar May 08 '24 05:05 PaulStogov

check pip installations, if you are using virtualenv check if pip is pointing to the right site-packages lib.

humam-nameer-10p avatar May 14 '24 22:05 humam-nameer-10p

I have checked with pip list that gradio is installed, but the error still shows up.

INGOR0 avatar Jun 06 '24 01:06 INGOR0