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

  • SEARCH
  • Home
  • 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 7552041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:39:30+00:00 2026-05-30T10:39:30+00:00

I installed psycopg2 on my Ubuntu Natty machine using apt-get. Now, I would like

  • 0

I installed psycopg2 on my Ubuntu Natty machine using apt-get. Now, I would like to know its version number. Can someone tell what the method to find version number for such python packages is.

  • 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-30T10:39:32+00:00Added an answer on May 30, 2026 at 10:39 am

    Since you installed it with the package manager, you can get the version from the command line with this command:

    dpkg -s psycopg2
    

    Alternatively you can get the version from using pip, if you have that installed

    pip freeze | grep psycopg2
    

    Or just run a python command to tell you:

    python -c "import psycopg2; print(psycopg2.__version__)"
    

    Output examples:

    λ > pip freeze | grep psycopg2
    psycopg2==2.4.4
    
    λ > python -c "import psycopg2; print(psycopg2.__version__)"
    2.4.4 (dt dec pq3 ext)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because
I have Pythong2.6, psycopg2 and pgAdmin3 installed using Macports. My settings.py is: DATABASE_ENGINE =
I'm trying to install psycopg2, using pip, on Fedora. I get the message: pg_config
I installed Python 3.0 and now I can't get my code to work. Does
installed ejabberd using synaptic package manager on Ubuntu 10.04 without any error. sudo dpkg-reconfigure
Installed Mono 2.4 on Ubuntu using the instructions here: http://www.nabble.com/forum/PrintPost.jtp?post=22841086 When I run xsp
I'm getting an error whilst trying to install psycopg2 on ubuntu 9.10 64 bit.
I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now
I installed ActiveReports from their site. The version was labeled as .NET 2.0 build
I installed subclipse in eclipse, but I get an error message Expected format '3'

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.