Hey Programmers...
I get installed pyGame. But now i want to install pyOpenGL on Windows 7 and 10.
But i need help with it.
I get python 3.6.2, incl. PIP from the custom installation. But i try to install
pyOpenGL on windows 7. But i don't know whats the way to install it.
Can enyone tell me the best way to insall pyOpenGL ?...
I get push 'PyOpenGL-3.1.0.tar' in the python path... but now to install it.
Thanks for helping, Jamie.
(Sep-23-2017, 03:23 PM)buran Wrote: [ -> ]as per the installation instructions
Most users of PyOpenGL should use pip to install PyOpenGL automatically. It can be installed either to the system Python or a Virtualenv.
$ pip install PyOpenGL PyOpenGL_accelerate
OK... i have tryed this, but if i run an pyOpenGL Script from the official pyOpenGL download site...
python give errors. Whats wrong with pyOpenGL ?... python give errors and the command prompt give
red text if i install it via PIP. Can anyone tell me whats the problem...
My OpenGL Viewer said thad my computer contains OpenGL 3.1... but my command prompt give red text,
must i get more packages download to run pyOpenGL ?.... Can anyone help me to tell what the problem
is ?. I get even the pip subtools installed for python packages, but its still don't work if i run
pyOpenGL Scripts on python 3.6.2.
I get Python 3.6.2 on Windows 7 (and 10)... Can enyone help me ?...
Thanks for help, Jamie van Cadsand.
Ok. Can you post what is printed when you install it via pip? What errors you get?
(Sep-24-2017, 12:03 PM)buran Wrote: [ -> ]Ok. Can you post what is printed when you install it via pip? What errors you get?
My Error... Command Prompt Said:
Error:
Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.
C:\Windows\System32>pip install PyOpenGL PyOpenGL_accelerate
Requirement already satisfied: PyOpenGL in c:\users\gebruiker\desktop\software\p
ython\ware\lib\site-packages
Collecting PyOpenGL_accelerate
Using cached PyOpenGL-accelerate-3.1.0.zip
Installing collected packages: PyOpenGL-accelerate
Running setup.py install for PyOpenGL-accelerate ... error
Complete output from command c:\users\gebruiker\desktop\software\python\ware
\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\GEBRUI~1\\Ap
pData\\Local\\Temp\\pip-build-k20d7tn6\\PyOpenGL-accelerate\\setup.py';f=getattr
(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close()
;exec(compile(code, __file__, 'exec'))" install --record C:\Users\GEBRUI~1\AppDa
ta\Local\Temp\pip-3km_zarg-record\install-record.txt --single-version-externally
-managed --compile:
Unable to import numpy, skipping numpy extension building
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\OpenGL_accelerate
copying .\setup.py -> build\lib.win32-3.6\OpenGL_accelerate
copying .\__init__.py -> build\lib.win32-3.6\OpenGL_accelerate
running build_ext
building 'OpenGL_accelerate.wrapper' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "c:\users\gebruiker\desktop\software\python\ware\python.exe -u -c "impor
t setuptools, tokenize;__file__='C:\\Users\\GEBRUI~1\\AppData\\Local\\Temp\\pip-
build-k20d7tn6\\PyOpenGL-accelerate\\setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fi
le__, 'exec'))" install --record C:\Users\GEBRUI~1\AppData\Local\Temp\pip-3km_za
rg-record\install-record.txt --single-version-externally-managed --compile" fail
ed with error code 1 in C:\Users\GEBRUI~1\AppData\Local\Temp\pip-build-k20d7tn6\
PyOpenGL-accelerate\
C:\Windows\System32>
The error thad begins with 'Command "C:\users\gebruiker\..."' is in red tekst, in the
command prompt on windows 7, on my laptop. The rest is in white text.
Have you any idea, whats the problem is ?...
Thanks for Help, Jamie.
PyOpenGL_accelerate will not work from
pip install PyOpenGL_accelerate
try to compile.
So use wheel
here.
Here a run so you can see how it work,i use virtual environment(is build in on 3.6).
You don't need to use virtual environment,just use the same pip install.
# Make environment
E:\1py_div
λ python -m venv py_gl
E:\1py_div
λ cd py_gl
# Activate
λ E:\1py_div\py_gl\Scripts\activate
(py_gl) E:\1py_div\py_gl
# Place wheel files in this folder and install
λ pip install PyOpenGL-3.1.1-cp36-cp36m-win32.whl
Processing e:\1py_div\py_gl\pyopengl-3.1.1-cp36-cp36m-win32.whl
Installing collected packages: PyOpenGL
Successfully installed PyOpenGL-3.1.1
# Install Accelerate
(py_gl) E:\1py_div\py_gl
λ pip install PyOpenGL_accelerate-3.1.1-cp36-cp36m-win32.whl
Processing e:\1py_div\py_gl\pyopengl_accelerate-3.1.1-cp36-cp36m-win32.whl
Installing collected packages: PyOpenGL-accelerate
Successfully installed PyOpenGL-accelerate-3.1.1
# Test that it work
(py_gl) E:\1py_div\py_gl
λ python
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GL import *
>>> from OpenGL.GL import shaders
>>> from OpenGL.arrays import vbo
>>> exit()
(py_gl) E:\1py_div\py_gl
For more on install and test that pip work(from anywhere in cmd),
you can look at
part-1,
part-2.
Hi!
I have installed PyOpenGL-3.1.1-cp36-cp36m-win_amd64.whl, but still there is an error
>pip list
certifi (2017.11.5)
chardet (3.0.4)
idna (2.6)
pip (9.0.1)
PyOpenGL (3.1.1)
pywin32 (221)
requests (2.18.4)
setuptools (28.8.0)
urllib3 (1.22)
>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
from OpenGL.GL import *
ModuleNotFoundError: No module named 'OpenGL.GL'; 'OpenGL' is not a package
windows command prompt:
pip install gl
pip install glu
pip list
Most users of PyOpenGL should use pip to install PyOpenGL automatically. It can be installed either to the system Python or a Virtualenv.