i am entering
pip install pygame
into cmd and what is retruned is
'pip' is not recognized as an internal or external command,
operable program or batch file.
i am running windows 10 64 bit and python 3.4.4 64 bit
Entering py -3.4 -m pip install pygame
in the command-line is the least error prone way to install pygame on Windows (replace 3.4
by your specific Python version).
That is because you have to click a checkmark during the installation to add Python to the PATH and can't enter python
in the command-line if you forget it and the /Scripts
directory also has to be added to the PATH, otherwise you can't enter pip
. But using the Python launcher py -3
or py -3.4
and running pip as a module -m pip
usually works.
First install pip
python get-pip.py
Add your python C:\\Pythonx\\Scripts to the system path
set PYTHONPATH=%PYTHONPATH%;C:\pythonx\Scripts
then run
pip install pygame
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.