For Windows 32bit or other OS conda install pyopengl
For WIndows 64bit The above command does not install some dll files to execute glut related function. So, a solution is (1) to copy necessary dll files to one of bin directory such as C:\Windows\System32 or (2) to take the following steps.
- download appropriate file from the unofficial pytyon library from here (for my case PyOpenGL‑3.1.1a1‑cp27‑none‑win_amd64.whl cp27 means Python 2.7).
- install the PyOpenGL by running the following command. pip install PyOpenGL‑3.1.1a1‑cp27‑none‑win_amd64.whl (change the .whl file name)
Windows 32bit もしくは その他のOS conda install pyopengl
WIndows 64bit 上記のコマンドではOpenGL(glut)の実行に必要なdllファイルが(パスが通っているフォルダに)インストールされないらしい.解決策として(1)必要なdllファイルをパスが通っているフォルダ(例えばC:\Windows\System32)にコピーする,もしくは(2)以下の手順でインストールする.
- ここ から非公式なpython libraryファイルをダウンロード(手元のPCでは PyOpenGL‑3.1.1a1‑cp27‑none‑win_amd64.whl cp27はPython 2.7を意味している).
- 以下のコマンドを実行してPyOpenGLをインストール. pip install PyOpenGL‑3.1.1a1‑cp27‑none‑win_amd64.whl (.whl ファイルの名前はダウンロードしたファイル名と同じファイル名にする)