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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:30:27+00:00 2026-06-13T22:30:27+00:00

I am trying to install psycopg2 under Windows (Windows 7, 64 bit). I am

  • 0

I am trying to install psycopg2 under Windows (Windows 7, 64 bit). I am using Python 2.7.2 from Python(x,y) and PostgreSQL 9.2.1 .

My first try was using the windows port that is downloadable from http://www.stickpeople.com/projects/python/win-psycopg/ (psycopg2-2.4.5.win-amd64-py2.7-pg9.1.3-release.exe). I get a message then that

Python 2.7 required but was not found in the registry

In the next dialogue it does not allow me to choose any python installations. All other programs and installations find my python happily.

This being failed, I tried to use the source package directly from http://pypi.python.org/pypi/psycopg2 but after trying:

python setup.py install

I am now stuck with the error message:

error: Unable to find vcvarsall.bat

Does anybody have an idea how to solve this?

  • 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-06-13T22:30:28+00:00Added an answer on June 13, 2026 at 10:30 pm

    You’re using a different Python distribution to the one the psycopg2 installer expects, so it cannot find the Python install location.

    You can manually install psycopg2 from the binaries you downloaded by following the instructions on the psycopg2 download page for issues installing with Zope, which read:

    It has been noted that the the installers for psycopg2 will not find
    the zope installation of python, stop the installation, and not
    installing psycopg2. A work around is to extract the files by renaming
    the extension from *.exe to *.zip and using a zip extractor (such as
    WinZip/PkZip/7z) to extract the psycopg2 folder and place it at
    \lib\python. I do not use Zope, so I will not be able to
    provide support or instructions on how to use it. Let me know if it
    does not work, though.

    The same will apply to the Python(x,y) distribution that you are using. Unzip the psycopg2 installer .exe using 7-zip, then copy the psycopg2 folder and ‘psycopg2-2.5.2-py2.7.egg-info’ file (so ‘psycopg2’ will apear on ‘pip freeze’) into your Python lib\site-packages directory. See installing Python modules.

    You should then be able to import psycopg2.

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

Sidebar

Related Questions

Trying to install RMySQL on 64-bit Windows 7. Using R-2.14.2 with Rtools214 and MySQL
Trying to install rattle on a windows server 2008 R2 64bit machine, using 64-bit
Trying to install various packages on a Windows 7 64 bit and learned that
I'm trying to install psycopg2 on Python 2.6: easy_install-2.6 psycopg2 but receive lots of
I'm getting an error whilst trying to install psycopg2 on ubuntu 9.10 64 bit.
Trying to install py-bcrypt on win7. Python is 64bit. First error unable to find
I'm trying to install psycopg2, using pip, on Fedora. I get the message: pg_config
After going through hell trying to install the latest version of postgresql and psycopg2
Trying to install python from the link here does not seem to give access
Trying to install WordPress from Web Platform Installer on Windows Server 2008 R2 Standard

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.