How to install visual-python on ubuntu 20.04.3 Lts? [duplicate]

I am trying to install visual python in Ubuntu 18.04 from terminal using

sudo apt-get install python-visual 
sudo apt-get install libgtkglextmm-x1

Unfortunately it shows some message and installation fails.
How can I fix it and what are other ways to install it?


Solution 1:

There is no python-visual package in the 18.04 LTS repository:

Python-Visual

So consider to install using pip3:

sudo apt-get install python3-pip
pip3 install vpython
python3 -c "from vpython import *; sphere()"

and you will get sphere in web-browser:

vpython sphere