![]() ![]() Run the Uninstall Program Included in the Uninstall Folder When this program is removed, the other missing programs in Add/Remove Programs are listed again. The installation program may detect that this program is already installed on your computer and provide an option to uninstall it. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:ģ22756 How to back up and restore the registry in WindowsTo work around this problem, use one of the following methods: Then, you can restore the registry if a problem occurs. For added protection, back up the registry before you modify it. Therefore, make sure that you follow these steps carefully. However, serious problems might occur if you modify the registry incorrectly. Important This section, method, or task contains steps that tell you how to modify the registry. Add/Remove Programs only lists program names it locates up to the point it encounters this situation. This problem can occur if the program you installed creates a registry key name that is longer than 60 characters in length. Also, other programs that are installed on your computer and that were previously listed in Add/Remove Programs may no longer be listed. The command for this situation is " LOCALBASE=/usr/local python setup.py install".After you install a program on your computer, the program is not listed in the Add/Remove Programs tool in Control Panel. The common case for this is SDL installed in /usr and other SDL libs installed in /usr/local. ![]() This tricks the pygame config scripts, but you can help it out by setting the environment LOCALBASE to a path prefix where the other libraries are. Sometimes you will have the SDL libraries installed in once location, and the other SDL libraries in another. If the sdl-config script is not on the path (or you have more than one?) Set the environment variable SDL_CONFIG to its location. You can check to see if SDL is ready to be built from by running the command sdl-config and seeing if it is found. To build you will need to make sure the packages like " SDL-dev" are installed. One thing you must keep in mind is that most linux RPM packages separate the actual library from the " dev" files needed to compile. Up to date details can be found here: CompileWindowsĬompiling from linux shouldn't give you any problems. You can compile pygame on windows with mingw (gcc for windows) and also with visual studio. Running " setup.py cython" will update them. Calling the "setup.py" script with no arguments and it will just ask you if you want the default flags needed to compile and install. You can change many things like install locations, compiler to use, and more. running " python setup.py help" will start to show you the different options available. Distutils actually supports a wide variety of compile and install options. Running the " setup.py" script will call distutils to build and install the pygame package. If you have trouble compiling, you should be able to easily fix any problems inside the " Setup" file. It defines variables needed to use each dependency, and then enables all the pygame modules with found dependencies. This " Setup" file is a simple Makefile-like text file. If it isn't perfect, it is easy to build your own, or edit the created " Setup" text file. The "config.py" will do a good job of detecting what dependencies are available and where they are located. This will build a " Setup" file which stores all the information needed to compile. The first time you run the setup script, it will call the " config.py" script. ![]() Use the "setup.py" script to start the installation. Pygame also comes with some scripts to automatically configure the flags needed to build pygame. This is compiled for your system as it installs, similar to BSD, Ĭompiling and installing pygame is handled by Python's distutils. See the FreeBSD package page for more information. While techinicaly it isn't binary, it is automatically built and installed by the ports manager. ![]() There is documentation with python for the " windows installation steps"įreeBSD also has an active pygame package. This means that python, and pip will work for you from the command line. Make sure you install python with the "Add python to PATH" option selected. This comes with pygame already installed on the default raspbian installation. If pygame starts compiling from source and fails, first try upgrading pip. If pip doesn't find a wheel for your platform, it will try to compile pygame from source (see below). Wheels are available for x86 and 圆4 architectures on Linux and Windows, and for 圆4 and arm64 on Mac. If not, please read some alternative installation methods, and extra details below. Hopefully the installation instructions above worked for you. If it works, you are ready to go! If not there are more detailed, platform-specific instructions further down the page. ![]()
0 Comments
Leave a Reply. |