1

importing api from gradio quickstart but in terminal it's showing a prblem of "import gradio could not be resolved"

how to make complier accept gradio

1 Answers1

1

firstly make sure that you have installed the library using the following command.

pip install gradio

The solution is to select the python3 interpreter inside the bin/ folder of the python installed

vs code python interpreter selector

click on the enter interpreter path here and choose the python3 inside the bin it will get the import error solved.

in my case i was using a venv so i'm selecting the python3 so that the pylint in the vscode will now the packages.

python3 selection

Surya R
  • 445
  • 2
  • 10
  • Hello Thanks for the ans but what I have done is created a venv and selected python interpreter but still the compiler is not accepting the gradio – Sravan Avvaru Mar 05 '23 at 07:09
  • Have u tried pointing to python instead python3 ? have tried reinstalling the package – Surya R Mar 05 '23 at 19:03