ImportError: No module named visual

Irfan Ghaffar7 picture Irfan Ghaffar7 · Feb 18, 2015 · Viewed 26k times · Source

I am trying to run this Python Program on Ubuntu but I am getting an error that says

ImportError: No module named visual

Can you guys please guide me on how can I resolve this issue?

Answer

bhaskarc picture bhaskarc · Dec 14, 2017

visual module has been renamed to vpython lately.

So to run this now, you first install vpython like:

sudo pip3 install vpython 

then replace the line:

from visual import *

with

from vpython import *

That worked for me.