1

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?

1
  • 2
    You 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...). Commented Jul 6, 2017 at 17:07

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.