0

I am creating a Python application that uses multiple third party libraries. Since the libraries are installed on my computer, the script runs fine. However, how can I alter my script so that it will run on any computer (all major OS), even if the computer does not have the third party Python libraries installed?

3
  • For Windows/Mac, you can use Py2exe/Py2app. For Linux distros, you make packages. Commented May 1, 2013 at 3:57
  • or pyinstaller for windows :) (thats the one I like :P ) Commented May 1, 2013 at 4:04
  • Not exactly what I wanted. I want the script to stay a python script if at all possible so that it can be run on any device and run through a webpage. Commented May 1, 2013 at 4:08

1 Answer 1

1

By your comment:

I want the script to stay a python script if at all possible so that it can be run on any device and run through a webpage

It appears you want some way to host a python program online.

To do this, you need:

  1. To know how to write Python that serves a website (see Django, Flask, CherryPy, etc...)

  2. Some way to deploy said application to the web. An easy, free (<-- this is the keyword) way to deploy Python web apps is through using Heroku or some other free hosting site. Or you could always pay for hosting or host it yourself.

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

1 Comment

Hmm...I suppose this could work. I was originally thinking that my script would be able to be hosted through a webpage and be run locally on any device. But I suppose I can create multiple versions of the program, one for each OS I want to support and one to host through the web page of my site. Thanks.

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.