So recently I made a game in python pygame and when I want to try it on a different computer it cant work because I don't have pygame as a package there, so my question is what do I do when I want to give my game to a friend without him having to get all the packages/modules I used to code it?
-
2You probably want to look into making an executable from your game. There are plenty of tools such as PyInstaller and cx_Freeze. Note some only work with certain versions of Python. Also note that you may need to download some extra libraries if you're compiling it on a windows platform. If all else fails, perhaps look into making a sort-of "setup" scrip which users of your game can use to install your dependencies(Python obviously, Pygame, etc...).Chris– Chris2017-07-06 17:07:22 +00:00Commented Jul 6, 2017 at 17:07
Add a comment
|
1 Answer
You'll want to compile it into an executable. You can use a popular program like py2exe to convert your project into an executable that can be used on any windows platform. Just make sure you are using the right version of python.