1. Python CFFI
  2. Untitled project
  3. cffi
  4. Issues
Issue #70 wontfix

Can't install CFFI using pip on Windows with python 2.7

Rajendra bhairy
created an issue

Hi all,

I tried to install CFFI on windows using pip.

Here are steps which I have followed. 1. Install python 2.7 2. Install pip 3. pip install cffi

Step 3 failed saying "error: Unable to find vcvarsall.bat". if you run "vcvarsall.bat" on command line then it is running without any error. +++++++++ C:\Users\Administrator>vcvarsall.bat Setting environment for using Microsoft Visual Studio 2010 x86 tools. +++++++++

Can someone help me with this? Also attaching pip.log file for more information.

Regards, --Raj

Comments (7)

  1. Armin Rigo

    Maybe you need to run vcvarsall.bat in a different way? I don't really know Windows and it seems like a general "compiling-on-Windows" question that must be answered elsewhere as well (unrelated to cffi).

  2. mattip

    Closing as wont-fix, not related to cffi. It is best to use the same version of visual studio to build extensions as used in building python, and distutils for python2.7.2 does not support visual studio 10.

  3. liuzhenhai

    modifing the Lib\distutils\msvc9compiler.py can make it support vs 10.0

    change 304 line "VERSION = get_build_version()" to "VERSION = 10.0" add "ld_args.append('/manifest')" behind "ld_args.append('/MANIFESTFILE:' + temp_manifest)"

  4. Log in to comment