-3

I am using Python34 on 32 bit Windows 7. When I try to run "pip install pygame" on my cmd I run into the following error

C:\Users\Admin>pip install pygame 'pip' is not recognized as an internal or external command, operable program or batch file.

When I do echo PATH, this is the path that is set

C:\Users\Admin>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind owsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W indows\System32\WindowsPowerShell\v1.0\;C:\Python34\Scripts

How should I fix this?

Nikhil
  • 13
  • 2

2 Answers2

0

As he said pip is usually in C:\Python34\Scripts so its probably not installed. I would probably add C:\Python34\ to your path for python itself too while you are at it but even with pip installed you will probably get an error installing pygame that says "error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)" because it needs to compile it.

You can get Visual C++ 2010 Express for free at https://www.visualstudio.com/downloads/download-visual-studio-vs#d-2010-express

An alternitive method instead of having pip compile it is to get the binary wheel file you need from http://www.lfd.uci.edu/~gohlke/pythonlibs/

You can install it as a binary without the MS C/C++ compiler by using "pip install pygame.whl"

Broccoli Soup
  • 557
  • 4
  • 7
  • pip is installed. I used the following to install pip C:\Python34\Scripts\pip3.exe and it was installed. Still I face the same error – Nikhil Mar 07 '15 at 14:04
  • In your example it would be looking for pip.exe in that folder rather than pip3.exe. if you don't have a pip.exe you could probably just rename the file. – Broccoli Soup Mar 08 '15 at 06:01
  • The Scripts file contain pip3 & pip3.4, there is no file named pip, will try running pip3.4. Thanks for your help – Nikhil Mar 08 '15 at 06:13
  • Even after installing pip3.4, still getting that error – Nikhil Mar 08 '15 at 08:02
-1

You can download it here MS Visual C++ 10.0. And it will be work. But i advice you, install Anaconda with Python 2.7 or 3.5 there is many easy installabe librares.

Amaroc
  • 129
  • 2
  • 9