Python Forum

Full Version: Pyglet installation problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

Very new to python - I have a beginners book and working through it, still on chapter 1.

I have been trying for the last hour to install pyglet on my laptop and running in to problems.

I have 3.6 python installed, and I have downloaded pyglet 1.3.0 in a zip file and unzipped it.

I have been following the install instructions using python setup.py install and various files/programmes appear to be installed BUT always, always an error occurs:

running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: 'C:\\Program Files (x86)\\Python36-32\\Lib\\si
te-packages\\test-easy-install-6964.write-test'


The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

C:\Program Files (x86)\Python36-32\Lib\site-packages\



It states I perhaps need to have administrator access (which I do).

I am just lost.

I really just need a basic step-by-step guide as to how to get use of pyglet.

Any pointers would be great, thanks.
use (from command line):
pip install PyGlet
C:\Windows\System32>cd\ # Check that python work C:\>python -V Python 3.6.4 # Check that pip work C:\>pip -V pip 9.0.1 from c:\python36\lib\site-packages (python 3.6) # Install C:\>pip install -U pyglet Collecting pyglet Downloading pyglet-1.3.0-py2.py3-none-any.whl (1.0MB) 100% |████████████████████████████████| 1.0MB 720kB/s Requirement already up-to-date: future in c:\python36\lib\site-packages (from pyglet) Installing collected packages: pyglet Found existing installation: pyglet 1.2.4 Uninstalling pyglet-1.2.4: Successfully uninstalled pyglet-1.2.4 Successfully installed pyglet-1.3.0 # Test C:\>python Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pyglet >>> pyglet.version '1.3.0' >>> exit() C:\>
If python and pip dos not work from like this from cmd.
Python 3.6 and pip installation under Windows, part-2.
Thank you snippsat - your reply really got my query sorted.