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 6789729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:38:21+00:00 2026-05-26T17:38:21+00:00

Ubuntu comes with Python 2.7.2+ pre-installed. (I also downloaded the python dev packages.) Because

  • 0

Ubuntu comes with Python 2.7.2+ pre-installed. (I also downloaded the python dev packages.) Because of another issue I’m having (Explained in extreme depth in How do I replace/update the version of the expat library used by Apache? ), Graham Dumpleton told me my distro had explicitly built Python in a way to use an external pyexpat implementation, so causing my issue. He also said I could build Python myself from source code to resolve the issue. How would I do this on Ubuntu? (Keep in mind I’m new to Linux.)

  • 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-26T17:38:22+00:00Added an answer on May 26, 2026 at 5:38 pm
    1. At a shell prompt (in a terminal), run

      sudo apt-get install build-essential 
      

      This will fetch all the common packages you need to build anything (e.g. the compiler etc.).

    2. Then run

      sudo apt-get build-dep python2.7
      

      This will fetch all the libraries you need to build python.

    3. Then download the source code for python and decompress it into a directory.

    4. go there and run

      ./configure --prefix=/path/where/you/want/python/installed
      
    5. Then make and then make install to get it built and installed:

      make && make install
      

    If you hit snags on the way, ask back here and I’ll try to offer some guidance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently studying Ubuntu Server administration, and also HTML/CSS. When it comes to the
I am just learning python on my ubuntu 8.04 machine which comes with python
The scenario is: I am on Ubuntu 11 which comes with Python 2.7, I
My Ubuntu server has Apache and Subversion installed. I use this server as a
The Ubuntu startup/login sound can be very loud, but I do like having it.
I'm using Ubuntu 10, python 2.6.5 I'm following this tutorial: http://www.djangobook.com/en/2.0/chapter02 I followed all
I recently upgraded to Ubuntu 10.04 which comes with Emacs 23. I need Jabref
I'm using Python 2.7.2 on Ubuntu 11.10. I got this error when importing the
I just upgraded to Ubuntu 9.1 which comes with gcc 4.4.1 and I have
I'm trying to find the right boost package that comes pre-compiled as well. (For

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.