Tips/Mac

mac m2 pro pip "no module named xxx"

Learever 2023. 9. 18. 03:23

[Update]

Use conda to install torchvision. It solved the issue. (conda install xxx)


When install 'torchvision' in a virtual environment using pip, no moudle found issue.

But pip says it's installed (type: pip3 install torchvision)

Check where it's installed. (in my case: /opt/homebrew/lib/python3.11/site-packages

My packages installed by pip are in /Users/jun/anaconda3/envs/photo/lib/python3.11/site-packages.

 

I had to copy torchvision related folders (torchvision, torchvision-0.17.0.dev~~~) from homebrew site-packages folder to photo site-packages folder.

 

'Tips > Mac' 카테고리의 다른 글

turn off mac charging chime  (0) 2023.11.09
mac shorcut  (0) 2023.09.17
비번 자동입력시 터치아이디 끄기  (1) 2023.09.11
mission control tips  (0) 2023.09.10
크롬 단축키  (0) 2023.09.09