그래픽스/OpenGL

파이썬 opengl 패키지 설치

동바리 2022. 7. 12. 06:47

파이썬 환경에서 openGL을 이용하기 위해 아래 패키지들을 설치합니다.

  • pip3 install PyOpenGL
  • pip3 install PyOpenGL_accelerate

저는 linaro에서 설치를 진행했는데, 아래와 같은 에러가 발생했었습니다.

 

Downloading https://files.pythonhosted.org/packages/68/89/ada28ebf7e30a73791e3d946843c6f471101eee637d67d44cde87ec30698/glfw-2.5.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kbw9ya_j/glfw/

 

이럴때는 아래와 같이 조치합니다.

sudo apt-get install python3-setuptools

 

그리고 다시 설치를 진행하면 됩니다.