Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6135901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:32:09+00:00 2026-05-23T17:32:09+00:00

I Develop Fairly large python application on server side , with all database connect

  • 0

I Develop Fairly large python application on server side , with all database connect , files extraction , parsing , command line calls.

It becomes a nightmare for deploying as i used many third party modules outside of standard python lib. And i lost track of them . Especially Differnt Linux OS uses different version of them so it is no longer good to install them using OS’s package manager.

I want to deploy them in all one bundle including current python version i am using (Most OS Still ship with Python 2.5,6 i am using 2.7 and 2.7 specific features.) .

Further more , i have to teach the client to how to deploy , so they can test out in other servers. But they are not linux experts . I have to make it easy , in one script or by doing copy and paste.

There is Portablepython for Windows But there’s nothing for Linux. And i had never used python Packaging as i usually work on server that i only host.

Please enlighten me of avaliable packaging and deployment options for python , that includes all the installed python modules and python itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:32:09+00:00Added an answer on May 23, 2026 at 5:32 pm

    Most Python packages can be deployed by creating a lib or similar directory in your deployment, and adding it to sys.path in Python, or PYTHONPATH outside, then copying the package directory (usually inside the directory you unzipped) into that directory. This lets you keep the package with your deployed code, say, in a Mercurial repository.

    Deploying Python itself is going to be a bit more hassle, but if you can control where it’s installed (such as /usr/local or /opt), then it’s just a matter of ./configure --prefix=..., make, and sudo make install. Then you can point your scripts to that Python by starting them with a line like #!/usr/local/bin/python, as long as the script is marked executable.

    For example, if you were deploying code that needs docutils, then you’d do something like:

    cd projectDir
    mkdir -p lib
    tar xzvf ~/Downloads/docutils-0.8.tgz
    mv docutils-0.8/docutils lib
    rm -r docutils-0.8
    

    Then a Python module in this directory would just add the following at the start:

    #!/usr/local/bin/python
    
    import os
    import sys
    sys.path(os.path.join(os.path.dirname(sys.argv[0]), "lib"))
    import docutils
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We develop Win32 application that access to SQL 2005 database through Linq to SQL.
I'm a freelancer and prefer working on large projects all by my own self.
I develop an application which has several tasks like report generator, show history etc,
I develop a application and in which i have a Menu option which i
I develop exclusively on VMs. I currently run Boot Camp on a MacBook Pro
I develop an extension module for Guile, written in C. This extension module embeds
We develop custom survey web sites and I am looking for a way to
I develop and manage about 45 WindowsCE5 devices. Updating applications on the devices is
I develop a number of desktop Java applications using Swing, and while Swing is
I develop and maintain small intranet web apps written in JSP and Java. They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.