ModuleNotFoundError: No module named 'torchvision'

hi there
i am using streamlit for object detection assignment. but i encountered with an error :ModuleNotFoundError: No module named ‘torchvision’
i have added requirements.txt
pandas==1.2.5
streamlit==0.86.0
altair==4.1.0
streamlit==0.86.0
wget==3.2
matplotlib==3.3.4
timm==0.4.12
click==7.1.2
torch==1.9.0
tqdm==4.61.2
numpy==1.19.5
Pillow==8.3.1
scikit_learn==0.24.2
torch==1.11.0+cu113
torchvision==0.12.0+cu113
torchaudio==0.11.0

Hi @mna_kh94, welcome to the community! :wave: :partying_face:

Please share a link to your GitHub repo so we can help debug.

mna9kh/objectdetctionapp (github.com)

thank you in advance

@mna_kh94 You need to upload your requirements.txt file to the repo for Streamlit Cloud to be able to install the Python dependencies.

If you ran into the ModuleNotFoundError locally, it means torchvision isn’t installed in your local environment.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.