본문 바로가기
python/ERROR해결

Exception has occurred: ModuleNotFoundErrorNo module named 'torchvistion' File, import torchvistionModuleNotFoundError: No module named 'torchvistion' 해결방법

by orangecode 2023. 6. 12.
728x90
 
Exception has occurred: ModuleNotFoundError
No module named 'torchvistion'
  File "C:\Users\kwonk\Downloads\workspace\ucf101\pose_classification_lstm_pytouch.py", line 101, in <module>
    import torchvistion
ModuleNotFoundError: No module named 'torchvistion'

 

conda install torchvision

conda install pytorch torchvision -c pytorch

 

 

2개 모두 안돼서 다른 거 찾아봄

 

콘다 가상환경으로는 설치가 안되서 결국 전체 가상환경인 pip로 설치!

 

설치하니까 import 된다!

 

pip install torchvision
반응형

댓글