Reputation: 301
I just installed pip using get-pip.py
and now I am trying to install pygame.
pip install pygame
But it returns an error.
The system cannot execute the specified program
Upvotes: 1
Views: 3111
Reputation: 2249
It depends on the location you are running the command from. You should not run it on the directory where pip
itself is installed. Just run it at a top level just like you run the Python command.
Upvotes: 1
Reputation: 26
Jonrsharpe if you are using Linux, my guess is to try installing the dependencies for Pygame.
sudo apt-get build-dep python-pygame
sudo apt-get install python-dev
Hopefully this fixes your issue.
Upvotes: 1