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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:59:32+00:00 2026-06-12T04:59:32+00:00

I’m trying to get PostgreSQL to work with psycopg2, and I have run into

  • 0

I’m trying to get PostgreSQL to work with psycopg2, and I have run into error after error. Every time I find a fix to the current error, a new error will appear. I installed PostgreSQL, I finally was able to install psycopg2 successfully, and I installed Microsoft Visual Studio 9.0. I changed line 243 of Python27/Lib/distilus/msvc9compiler.py from

toolskey = "VS%0f0COMNTOOLS" % version

to

toolskey = “VS90COMNTOOLS”

by following http://web.archive.org/web/20101221084639/http://nukeit.org/compile-python-2-7-packages-with-visual-studio-2010-express/. Note: I also tried VS100COMNTOOLS as was used in the guide, but I figured since I had version 9.0 of visual studio, that would be what I should use. I also added the system variable

variable=VS90COMNTOOLS , value=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools.

The only reason I even tried this was to take care of the last error in my continuous chain of errors, which occurred when trying to install psycopg2:

error: Unable to find vcvarsall.bat

I’ve been trying to make the database switch from SQLite to PostgreSQL for a few days now, without any luck. I don’t see why this would be so difficult to do. I would really appreciate some help. I’m pretty new to Django, Python, and any programming. I’ve searched the other answers, and that is how I’ve gotten past the first several answers, but none ever seem to end with a fix. The only output I get is the error message displayed in the title. I was attempting to go back to chapter 5 of the Django Book to make sure I had my configuration set up correctly, but apparently I don’t because I cant even run python manage.py shell.

Thank you to anyone who can finally help me with 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-12T04:59:33+00:00Added an answer on June 12, 2026 at 4:59 am

    Trying to compile psycopg2 from the source on Windows is probably going to be very tricky. I recommend the solution I use which is to install the pre-compiled psycopg2 Windows packages graciously provided by the Stickpeople Project from here: http://www.stickpeople.com/projects/python/win-psycopg/.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text

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.