Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyglet problem
#1
New to python. I tried installing pyglet using pip. Would not work from cmd line but worked if I opened the cmd prompt and went to the dir in python. Using the IDE. I can import pyglet and ask what version I am running and I get a valid reply. I can issue a command to open a window and it works. However, when I open pycharm and import pyglet then try to open a window I keep getting and attributeError Module pyglet has no attribute window. I know the problem is me but I am at a lost as to what I am doing wrong
Reply
#2
If you have properly installed python, your current working directory should not matter.
Even with a virtual environment, once activated, you should be able to run pip no matter where you are.

I suspect there is a problem with python installation.
Perhaps missing environment variables?

See what you can find for your platform here: https://python-forum.io/Forum-Python-Ins...-Execution

You might want to uninstall python and reinstall, following one of the tutorials.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Playing mp3 with pyglet constantin01 3 5,505 Dec-17-2021, 01:14 PM
Last Post: Legumen
  How many times was the button pressed in pyglet rama27 0 1,924 Oct-10-2020, 10:26 AM
Last Post: rama27
  Pyglet installation problems LostinPy 3 5,569 Feb-07-2018, 08:47 PM
Last Post: LostinPy
  Game in Pycharm using pyglet pierrem13 0 3,199 Nov-29-2017, 01:54 AM
Last Post: pierrem13
  Pyglet Media: unjustifiable memory usage hbknjr 4 4,610 Aug-20-2017, 02:08 AM
Last Post: hbknjr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020