I just installed pyglet with pip3 to try some new things out. I go to try out some of the sample code from the pyglet website to create a window that displays some text.
import pyglet
window = pyglet.window.Window()
The rest of the code is meaningless to continue on with because if I run the code I get:
AttributeError: module 'pyglet' has no attribute 'window'
So I figure okay, let me look and see what's inside the module.
help(pyglet)
And all I get is:
Help on package pyglet:
NAME
pyglet
PACKAGE CONTENTS
FILE
(built-in)
(END)
What I don't understand is why the module has nothing in it? Also, I did install pyglet with pip install before and for some reason it doesn't import with python2. If I run it with python2 I get:
ImportError: No module named pyglet
But pip list shows that I do have it as does pip3.
Okay, so I uninstalled pyglet using pip for both Python2 and 3. Before I installed pyglet again using pip, pyglet was still installed. For some reason pip doesn't do anything on my system. If I want to install a python module I do it from the package manager apt. So I don't know what's going on here exactly but I got it working with Python2, but there isn't a pyglet package for Python3.