Filip Bartoš
Filip Bartoš

Reputation: 301

"The system cannot execute the specified program" on pip install

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

Answers (2)

E_K
E_K

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

user2580827
user2580827

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

Related Questions