Python PIP has issues with path for MS Visual Studio 2010 Express for 64-bit install on Windows 7

前端 未结 4 1904
孤城傲影
孤城傲影 2020-12-01 03:26

I was creating a virtualenv with a clean install of python 3.3, 64-bit version. (Note: I have several installs of python on my computer including WinPython but want to set

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 03:52

    Here is what I did to intall 64-bit packages for python 3.4.4 on a windows 10 x64 and x64 based processor:

    0)Use precompiled amd64 whl's for everything possible, and the following method for anything that threw errors

    1a) Installed Microsoft Visual C++ 2010 Express

    1b) Uninstalled Microsoft Visual C++ 2010 Express redistributable via control panel

    2) Installed Microsoft SDK 7.1 (Windows 10)

    3) I installed fix (http://support.microsoft.com/kb/2519277)

    4) Created a new vcvars64.bat file under C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64 including only the line

    CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
    

    5)Running pip install in the SDK command prompt after typing

    setenv /x64
    

    and

    set DISTUTILS_USE_SDK=1
    

提交回复
热议问题