Skip to content
  • Shop
  • About the Creator
  • Author BookShelf
  • Black Cat Adventures
  • Newsletter Options
  • Contact Us
  • Privacy Policy
  • Cookie Policy (US)
Kids Hide Away

Kids Hide Away

Specializing in Educational Software

  • Home
  • Shop
    • Free Printable Word Tracker
    • Productivity Timers
      • Productivity Timers – Black
      • Productivity Timers – Lake Erie
      • Productivity Timers – Bubbles
    • RedM Scripts (Tebex)
    • Black Cat Adventures
    • Catch FireFlies, a Free Casual PC Game
    • Stickers
      • KJ’s Cartoons
    • Digital
      • OneNote Digital Planner Stickers – Kaban Board – Authors – Write Chapters
      • Digital Planner Stickers – Publishing Milestones for Authors
      • OneNote Digital Planner Sticker – Kaban Board – Authors – Edit Chapter
    • Apps
      • Space Nebula Timer App (Linux)
      • Space Nebula Timer App (Windows)
      • Forest Timer App (Windows)
      • Forest Timer App (Linux)
      • Big and Bold Timer App (Linux)
      • Big and Bold Timer App (Windows)
      • Bubbles Timer App (Windows)
      • Runes Timer App (Windows)
      • Bubbles Timer App (Linux)
      • Runes Timer App (Linux)
      • Sunset Forest Timer App (Linux)
      • Sunset Forest Timer App (Windows)
  • Indie Game Studio
    • The Wild Ones
    • The Drained
    • CFX/REDM
      • Barrels Version 2
      • Barrels Version 1
      • Crates Version 2
      • Crates Version 1
      • Dressers Version 1
      • Footlocker Version 1
      • Desks Version 1
      • Cupboards Version 1
      • Valentine Green House
    • Ice Hockey Games
      • Hat Trick – Connect 3
      • Power Play – Endless Runner
      • Dream Team – Fantasy Statistics
      • Ice Hockey Games – Practice Skills
      • Offsides – RPG
      • Ice Hockey Games – Tournament Games
    • Capture FireFlies
    • Black Cat Adventures
      • Black Cat Adventures
      • Black Cat Adventures
      • Black Cat Adventures – Manual
      • Black Cat Adventures – Statistics
      • Black Cat Adventures – Demo
    • 2D Games
      • Classic Arcade Games
      • Space Race
    • Educational Games
  • Blog
    • About the Creator
  • Life Long Learner
    • Packt: Python Books
    • Udemy: Python
    • Udemy: C#
    • Udemy: C++
    • Udemy: Android
    • Udemy: Unreal
    • Packt: node.js Books
    • 3ds Max Modeling for Games by Andrew Gahan
  • Recent Courses
    • Domestika: Architectural Sketching with Watercolor and Ink (Project Board)
    • Domestika: Colored Marker Techniques for Manga (Project Board)
    • Domestika: Narrative Techniques for Illustrated Stories (Project Board)
    • Domestika: Watercolor Coloring for Comics and Illustrations
    • Domestika: Urban Sketching: Express Your World in a New Perspective (Project Board)
    • Domestika: Pictorial Sketchbook with Gouache (Project Board)
    • Domestika: Introduction to Colour Psychology: Chromatic Narrative
    • Domestika: Watercolor Techniques for Dreamlike Illustrations
    • Domestika: Illustrated Stories: From Idea to Paper
    • Domestika: Illustration Techniques with Watercolor and Gouache (Project Board)
    • Domestika: Creative Sketching: Fill Your Illustrations with Life and Detail (Project Board)
    • Teachable: HB 90 by Sarra Cannon @ Hearth Breathings
    • Teachable: Publish and Thrive by Sarra Cannon @ Hearth Breathings
    • Teachable: Lindsey the Frugal Crafter
    • Teachable: Alcohol Markers by Lindsey the Frugal Crafter
  • Indie Artist
    • Inktober
      • How to make a comic in 6 days – Day 1
      • How to make a comic in 6 days – Day 2
      • How to make a comic in 6 days – Day 3
      • How to make a comic in 6 days – Day 4
      • How to make a comic in 6 days – Day 5
      • How to make a comic in 6 days – Day 6
  • Author BookShelf
    • Alexander’s Bounty
    • Rebecca’s Scroll
    • Author
  • Melvin’s Games
  • SNHU
    • SNHU: GAM303
    • SNHU: IT140
    • SNHU: GAM305
    • SNHU: GAM415
    • SNHU: GAM465
    • SNHU: GAM495
    • SNHU: GAM312
    • SNHU: GAM207
    • SNHU: GRA220
    • SNHU: GRA211
    • SNHU: GRA310
    • SNHU: IT145
    • SNHU: IT230
    • SNHU: IT312
    • SNHU: IT328
    • SNHU: IT450
    • SNHU: MAT225
    • SNHU: COM-230
    • SNHU: GRA202
  • Contact Us
  • Toggle search form

How to install Python, Pygames, GitHubDesktop, and Eclipse together (Windows 10).

Posted on July 10, 2021January 22, 2023 By Southworth Family

*** note this is a rough draft of the steps taken to install on a windows 10 laptop, and some commentary. The tutorial has been started for my nephew who is working on a pygame school project. The goal is to keep this short and simple.

—- I’m dsylexic, and a linux user, check the slashes in my notes, I may get them backwards when I’m writing up the notes.

Step 1 – Easy to remember paths.

Create a directory in C or on another drive called Compilers.

In the Compiler directory, create the directories PyGame, Python, and Eclipse.

** this is to simplify the path to the files you will need to access later.

Install Python.

https://www.python.org/downloads/

Change the install directory to be the Compilers\Python directory you just created.

More detailed python install directions here (Insert link later).

Install PIP

Microsoft Instructions

In the terminal windows in your Compilers/Python directory type this command:

pip install –upgrade setuptools

***** This program helps you install and manage packages for python.


Install GitHubDesktop.

https://desktop.github.com/

Install to default locations.


MS Visual Studio Build Tools

Install these next to avoid errors later.

Screen Capture of error when installing PyGame without the build tools.

The error at this time tells us to go to https://visualstudio.microsoft.com/visual-cpp-build-tools/

It redirects to here: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

(these may change in the future, go with the flow, see where you end up, click around if you have to, to find what you need.)

It will prompt you to download an installer (vs_BuildTools.exe), which you will run after it’s downloaded.

Then the program will load the “Visual Studio Installer”.

Select “Universal Windows Platform build tools” in the left hand box.

Then on the right select two additional items for game development, they are from previous years, and provide backwards compatibility for different libraries. (Sorry I already have everything installed so I can’t give you a screen shot. Just read the list that loads on the right and it should mention game development and a year. 2015 2017 or something like that. ) When you have the right packages selected and start the install, the total space required will be over 2 Gigs. )

Let it download, then install. It can take a couple hours if your internet is slow, or your computer is slow. Be patient.


Install PyGame – Using GitHub

***** Only install pygames one way, either use github and the manual install or pip. do not use both.

** If you do this out of order, you will probably get an error at the end of the install, I’ve included that solution above, to save you some frustration. (err: build tools for ms visual studio)

In a browser search for “GitHub Pygames” and you should end up at this account. (Including the search in case the url changes in the future.)

https://github.com/pygame/pygame/

Click the “Code” button, and copy the URL. It will look like this “https://github.com/pygame/pygame.git”

In GitHubDesktop, select “File, Clone Repository”

On the new dialog box, click “URL”, then enter the URL in the first text field.

In the second text field select the “Compiler\Pygames” directory you created. Click Clone.

You ask: (Why are we downloading from github instead of pygame.org?
— see https://www.pygame.org/download.shtml )

Answer: At the time of this tutorials creation the most recent version available on this page is pygame-1.9.6.tar.gz ~ 3.1M, and this package uses a bitbucket account as part of the build process that is no longer available. The installs fails. The github version is 2.0.1 and it has updated links to download the packages from the pygames server instead.

—Start a terminal window (Click the windows button, type “term” , click the “Command Prompt” app.

Type the command “python setup.py”

Type “Y” twice as prompted.

Then it should install to a successful completion.

———- To test a pygame, “python -m pygame.examples.aliens”

If it runs you have installed pygame successfully.


Navigating Command Line in Windows.

You will normally be dumped into the terminal in your user directory. If you created your ” Compilers\PyGame” directory on the “C:” drive. Then you can change directory with the command “cd c:\Compilers\PyGame”


Install PyGames using PIP

(Reference https://www.pygame.org/wiki/GettingStarted)

Start a terminal window (Click the windows button, type “term” , click the “Command Prompt” app.

“cd” to your Pygames directory.


 py -m pip install -U pygame --user 

To test that pygames is working run this command. If the game runs it’s installed.


py -m pygame.examples.aliens


Install Eclipse

Search/Google “eclipse download windows” you should end up here roughly. https://www.eclipse.org/downloads/

There should be a Download button for the latest version of Eclipse. This is a basic installer. Download and run it.

It will then give you a choice of which compiler you will be working with. Python does not have it’s own option on this menu (at the time of this tutorial). You choose the C++ build or the PHP Build. Either will work.

Let it install, but change the directory to be the one you created “Compiler/Eclipse”.

After it installs, “Launch” the program.

Then click “Help” and “Eclipse Marketplace”

Use the search feature on the new dialog box to search for either “python” or “pydev”.

Install “PyDev – Python IDE for Eclipse”

Agree to the TOS prompts.

PyDev

Rough notes —
Next in Eclipse, select “File, New Project”

Select a python project.

Select configure path to compiler (“Please configure an interpreter before proceeding.”)

** This is just a quick way to get the path configured.



Click on “new” (it’s the first button on the right) and the option “Browse for python”

Then select your path to python should be similar to “Compiler/Python/python.exe”

It will scan the directory and come back with a list.

Click “OK”

If pygames has installed correctly, and python recognizes it, then under libraries you should see pygame.

If not add the path to “Compilers/PyGame”. — this is the part that was not working correctly for us when we compield a pygame pacman game. ran out of time to research it.


Path issues.

— pausing will come back tomorrow —
Goal for tomorrow, finish my notes, and work on the eclipse and pygame path issue.

If you are still getting errors in eclipse or in the command line and they are:
ModuleNotFoundError: No module named 'pygame._view'
OR
ModuleNotFoundError: No module named 'pygame.base' 

Solution: ModuleNotFoundError: No module named ‘pygame._view’

_view is not used anymore.

Change the line of your code from “import pygame._view” to “import pygame”

Solution: ModuleNotFoundError: No module named ‘pygame.base’

You’ve installed the wrong version of pygame for your version of python, or you have to many version of pygame installed and it’s confusing python.

  1. use pip to uninstall and reinstall pygame.

pip uninstall pygame

pip cache purge

pip install pygame

Hits: 90

Blog, Dev-Log Tags:build tools, compile, eclipse, errors, github, githubdesktop, install, pydev, pygame, python, repository

Post navigation

Previous Post: Dragon Nebula – Book 1 Progress Update
Next Post: Space Nebula Timer App

Related Posts

Word Sprint Timer – Lake Erie Author Topics
HB90 – Nov 8th – NaNoWrimo – Monday – Blog Author Topics
REDM FAQs How do I make a / chat command? Redm/CFX/LUA CFX/REDM
Search crates version 2 Crates Version 2 CFX/REDM
RedM / Deadwood County / Cigarettes and Cigars Blog
REDM FAQs Day 1 – RedM/CFX/VORP Project – Download and install. Blog

Scripts can be purchased at ✨✨tebex✨✨

Blog Categories

  • Author Topics (58)
  • Blog (224)
  • Clark and Parker Academy (6)
  • FAQ (5)
  • Games We Play (17)
  • Home School (1)
  • Homestead and Gardens (4)
  • Indie Artist (34)
  • Indie Game Studio (117)
  • Life Adventures and Memories (8)
  • Life Long Learner (1)

New Products

  • Dark Mode - Weekly Hourly Page - Digital - Undated - Letter Size
    Dark Mode - Weekly Hourly Page - Digital - Undated - Letter Size
  • Light Mode - Weekly Hourly Page - Digital - Undated - Letter Size
    Light Mode - Weekly Hourly Page - Digital - Undated - Letter Size
  • Cozy Mystery Digital Templates for Authors
    Cozy Mystery Digital Templates for Authors
  • Game Development Digital Planner Page for Projects
    Game Development Digital Planner Page for Projects
  • Digital Planner Stickers - Publishing Milestones for Authors
    Digital Planner Stickers - Publishing Milestones for Authors
  • OneNote Digital Planner Sticker - Kaban Board - Authors - Edit Chapter
    OneNote Digital Planner Sticker - Kaban Board - Authors - Edit Chapter
  • OneNote Digital Planner Stickers - Kaban Board - Authors - Write Chapters
    OneNote Digital Planner Stickers - Kaban Board - Authors - Write Chapters
  • Sunset Forest Timer App (Windows)
    Sunset Forest Timer App (Windows)

Events

Subscribe to our newsletter!


Featured Books

Alexander’s Bounty

Alexander’s Bounty

August 1920 Cleveland, Ohio. Detective Alexander Jones

More info →

Rebecca’s Scroll

Rebecca’s Scroll

August 1920 Cleveland, Ohio. Bookstore owner and conservation specialist Rebecca Williams struggles to clear her name after she finds a body in the museum's bronze age gallery. Amid a flood of exhausting police interviews, missing artifacts, angry crowds, magical puzzles, sneaky suspects, and death threats. Will she be the next victim or begin the next great adventure?

More info →

Contact US

Scripts can be purchased at ✨✨tebex✨✨

For assistance, please create a support ticket on our 🎟️🎟️website 🎟️🎟️

Please use the email address you purchased the script with to create the support ticket and account.

[Dragon Code - 💬💬DISCORD💬💬]

[PATREON 🎨🎨KLSANDELS 🎨🎨] for new server installs, custom code requests, tutorials, and early access to scripts and servers.

Game Server List: 👾 🕹️ 💻 Crimson Creek 💻🕹️👾

[Crimson Creek - 💬💬 DISCORD 💬💬]

[DISCORD RULES] – Be polite, professional, and patient in your communications with staff, dev, and the general community.

Copyright © 2023 Kids Hide Away.

Powered by PressBook Masonry Dark

Loading...
Manage Cookie Consent
We use cookies to optimize our website and our services. They are not required for the site to function.
Functional cookies Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
 

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.