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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:26:26+00:00 2026-05-27T04:26:26+00:00

I am trying to install pycassa , a Cassandra client in Python, on Windows

  • 0

I am trying to install pycassa, a Cassandra client in Python, on Windows 7.

Running pip install pycassa I got this error message:

error: unable to find vcvarsall.bat

Digging deeper, I found that Python failed to install the thrift library and Python bindings. One way people suggest is to install a C++ compiler, such as Visual Studio 2008 Express, or mingw on Windows 7, and compile Thrift from source.

However, I found an online compiled version of Thrift.
Is there a way to bind the compiled version of Thrift into Python and then use it in pycassa? Or do I have to go through compiling thrift from source?

  • 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-27T04:26:27+00:00Added an answer on May 27, 2026 at 4:26 am

    Thrift really has two (kinds of) components: there’s the Thrift compiler, which generates code given an interface, and then there are the per-language libraries, which implement the low-level thrift protocols and transports for each language.

    You almost certainly don’t need the Thrift compiler, which is what you linked to. You do need the Thrift python library; pip attempts to install this as a dependency for pycassa. The reason that it’s breaking is that there is a C extension that is included in the Thrift python library, and during the installation process, it tries to compile that. For the compilation to work, you need to do a few things specially.

    If you’re just doing this for development purposes, you can download the latest Thrift python library manually, remove src/protocol/fastbinary.c, and then run ‘setup.py install’ from the top-level directory. This will be slower than if you have the extension compiled and installed, but for dev purposes, it will work fine. You can use ‘pip install –no-deps pycassa’ at this point, and it won’t try to install Thrift automatically, just pycassa.

    If you’re doing this for production, you will likely want the C extension to be compiled and installed. To do this, you need to install Visual C++ 2008 Express Edition, check out the latest version of Thrift from SVN, go to the lib/py directory, and run ‘setup.py install’ there.

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

Sidebar

Related Questions

Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
when trying to install cygwin, I keep getting this error message: the entry point
Trying to install the RMagick gem is failing with an error about being unable
Trying to install pear package and keep getting this strange error. Can you shed
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
I'm trying to install PyDev in Eclipse 3.6 on Windows 7. I have Python
When trying to install gems using rvm i get this error $ rvm gem
Trying to install mysql2 gem on ruby 1.9.2 and I get this error: Installing
When trying to install my 32bit service on a Windows 64bit machine my installer
I'm trying to install Laconica , an open-source Microblogging application on my Windows development

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.