简体   繁体   中英

Run Python Script Without Dependencies Installed

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM