Then go to the directory where you installed the Pygame module ( by default in the Downloads folder). To access it, right-click on the started menu and click on Execute. To install the previously downloaded Pygame module, we need to access the Windows command line. You can choose between a 32bits or 64bits version (in this example, we will start with the win32 version). Take the latest version available and click on the link to download the. You can get a version of Pygame via this link : To finalize the installation, press the install button for your computer to complete the installation. For the rest, you can leave them as they are. Make sure the checkboxes for “ Optional features” are checked. Once the download is complete, press the run button. You can install the latest stable version of Python. If you haven’t already done so, it is available here :Ĭlick on the version of Python you are interested in and press download. To run the Pygame module, we must have a version of Python on our machine. How to install Pygame for Windows Install Python If you purchase a product by using a link on this page, I’ll earn a small commission at no extra cost to you Choose your version and press Install Package. In the lower right corner choose 'specify version'. If you wish to deepen your knowledge in the Pygame Module, I invite you to read this book :Īs an Amazon Associate I earn from qualifying purchases. To update pip on pycharm: Open project settings (File > Settings.) (preferences on Mac) Project > Project Interpreter. We will therefore see in this guide the best instructions for installing it on your system. You can therefore program games and Python programs with Pygame that are supported on different platforms.īy default, Pygame is not installed on the Python programming environment. SDL provides cross-platform access to the underlying multimedia hardware components of your system, such as sound, video, mouse, keyboard and joystick. Pygame is a Python wrapper for the SDL ( Simple DirectMedia Layer) library. To develop a game in Python, there are several modules that make it easier to work with graphics (such as rectangles, circles, images, etc…) and sounds. This allows you to have fun while learning the basics of programming. When you’re new to Python programming, the best way to improve your skills is to create mini-games. We will see in this tutorial how to install the pygame module on Windows or MAC using pip or the P圜harm editor.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |