Go to the following link: Python Extension Packages for Windows - Christoph Gohlke (uci.edu) https://www.lfd.uci.edu/~gohlke/pythonlibs/#_pyopengl:~:text=PyOpenGL%E2%80%913.1.5%E2%80%91cp36%E2%80%91cp36m%E2%80%91win_amd64.wh and download the files with names as below:
PyOpenGL‑3.1.6‑cp3x‑cp3x‑win_amd64.whl
2:
PyOpenGL_accelerate‑3.1.6‑cp3x‑cp3x‑win_amd64.whl
where your python version is 3.x
Open the PyCharm terminal (see figure) and run the following commands:
pip install PyOpenGL-3.1.5-cp3x-cp3xm-win_amd64.whl
pip install PyOpenGL_accelerate-3.1.5-cp3x-cp3xm-win_amd64.whl
[Replace 3x with your respective version of the downloaded file.] Now openGL is installed.