Visual C++ for python failed with exit status 2 when installing divisi2

前端 未结 3 942
日久生厌
日久生厌 2020-12-19 17:32

i am using Python 2.7 on Windows 8.1 46 bit.

I want to install divisi2 https://pypi.python.org/pypi/Divisi2/2.2.5

I have installed NumPy and SciPy which are

相关标签:
3条回答
  • 2020-12-19 17:39

    Both the above methods work nicely.
    This one is a bit easier though.
    Install Visual C++ 2015 Build Tools from https://go.microsoft.com/fwlink/?LinkId=691126 with default selection.

    0 讨论(0)
  • 2020-12-19 17:44

    Came across this issue when installing pycocotools on windows 10. Python 2.7 is incompatible or does not support Visual C++ 14 that is required to compile C99 code. This is the reason for the compiling errors (C2065,C4047 etc).

    You need to,

    1. Install Visual Studio 2015 build tools (this will install C++ 14 compiler).
    2. Install a new newer version of Python (3.6 recommended)

    More about Windows Compilers for Python here.

    0 讨论(0)
  • 2020-12-19 17:52

    I finally solved this problem after getting this hint from a colleague i.e. to use

    https://github.com/develersrl/gccwinbinaries.

    This will install the requisites and then you can install divisi2.

    0 讨论(0)
提交回复
热议问题