简体   繁体   中英

Having issues while trying to install pygame and pip on python 3.6

I'm new to programming and I'm studying python. I have to install pygame and pip in order to continue the book I'm studying from but I can't seem to find an easy way to do it. I've tried to upgrade pip but I dont know exactly how to do it. I already tried by using the prompter but it says that it cant recognize it as a internal or external command. I have recently downloaded the python 3.6.5 version and I still have the python 3.5 version installed. Is there an easy way to do it?

Edit: Already tried to do this one: 'pip' is not recognized as an internal or external command

and this one: How do I update pip itself from inside my virtual environment?

but couldnìt understand that much.

Usually, you can do

easy_install pip
pip install pygame

As alternative you can just use Anaconda which already has pip set up and ready to roll.

You don't have to install pip, since it's installed by default.

If you're using Windows, enter py -3.6 -m pip install pygame in the command-line. This will install pygame specifically for Python version 3.6.

In other operating systems you can enter pip3 install pygame or python3 -m pip install pygame . OS X users often have trouble with the installation, but I can't help with that.

Check out pygame's getting started page.


The problem in this special case was that the "Scripts" directory which contains pip was not installed. The user was able to fix it by running the Python installer again and selecting "modify".

Afterwards you can also upgrade pip in this way python -m pip install --upgrade pip or in Windows py -m pip install --upgrade pip .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM