1

I want it to run anywhere directly. For example, we build the c or c++ program and it generates a .exe file. Now we can take that .exe file and run it on any windows machine right?

The main problem I am facing is: I have different packages like BeautifulSoup in my program which does not come pre-installed in ubuntu. Now when I run my program on my machine, it runs but not on other. So is there any way I can make it directly run on any linux machine? It will be great if I can also run it on Windows too.

user3903448
  • 320
  • 1
  • 8

1 Answers1

1

The current recommendations for packaging Python programs to run on machines that already have Python installed can be found here.

To run a Python program on a system that may or may not have Python installed, look into pyinstaller, py2exe or cx_Freeze.

Chinmay Kanchi
  • 62,729
  • 22
  • 87
  • 114