Cannot execute >>>import torchvision

Good evening! According “Hello AI World” (Building Project from Source) I installed package PyTorch 1.6.0. During “Verifying PyTorch” I get error in >>>import torchvision - “SyntaxError: future feature annotations is not defiIned” ??? How can I verify torchvision installation? What did I do wrong? Thank you in advance,

Hi @vkray, can you try running this: pip3 install 'pillow<9'


Hi Dustin,

I use your

pip3 install ‘pillow<9

And it works!

Tourchvision was imported correctly and I start next task (collecting my own classification dataset)


Vladimir Krayushkin

OK great, glad you were able to get it working!

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