2016-09-29 5 views
1

Windows 8.1でPython 2.7を使用しています46ビット。divisi2のインストール時にPython用のVisual C++が終了ステータス2で失敗しました

私はすでにdivisi2のための前提条件ですnumpyのscipyのダウンロードとインストールをしているdivisi2 https://pypi.python.org/pypi/Divisi2/2.2.5

をインストールしたいです。私はPython 9.0のVisual C++をインストールしました。

pip install divisi2コマンドを発行するたびに、コンソールで次のエラーが表示されます。

 svdlib/svdwrapper.c(89) : error C2059: syntax error : '{' 
    svdlib/svdwrapper.c(90) : error C2275: 'PyObject' : illegal use of this type 
as an expression 
      c:\python27\include\object.h(108) : see declaration of 'PyObject' 
    svdlib/svdwrapper.c(90) : error C2065: 'arr' : undeclared identifier 
    svdlib/svdwrapper.c(90) : error C2065: 'type' : undeclared identifier 
    svdlib/svdwrapper.c(90) : warning C4047: 'function' : 'PyArray_Descr *' diff 
ers in levels of indirection from 'int' 
    svdlib/svdwrapper.c(90) : warning C4024: 'function through pointer' : differ 
ent types for formal and actual parameter 2 
    svdlib/svdwrapper.c(91) : error C2065: 'dim' : undeclared identifier 
    svdlib/svdwrapper.c(91) : warning C4047: 'function' : 'npy_intp *' differs i 
n levels of indirection from 'int' 
    svdlib/svdwrapper.c(91) : warning C4024: 'function through pointer' : differ 
ent types for formal and actual parameter 4 
    svdlib/svdwrapper.c(91) : error C2065: 'strides' : undeclared identifier 
    svdlib/svdwrapper.c(91) : warning C4047: 'function' : 'npy_intp *' differs i 
n levels of indirection from 'int' 
    svdlib/svdwrapper.c(91) : warning C4024: 'function through pointer' : differ 
ent types for formal and actual parameter 5 
    svdlib/svdwrapper.c(95) : error C2065: 'arr' : undeclared identifier 
    svdlib/svdwrapper.c(96) : error C2065: 'arr' : undeclared identifier 
    svdlib/svdwrapper.c(96) : warning C4047: 'return' : 'int *' differs in level 
s of indirection from 'int' 
    svdlib/svdwrapper.c(100) : error C2143: syntax error : missing '{' before '* 
' 
    svdlib/svdwrapper.c(102) : warning C4133: 'initializing' : incompatible type 
s - from 'int *' to 'PyObject *' 
    svdlib/svdwrapper.c(114) : warning C4133: 'return' : incompatible types - fr 
om 'PyObject *' to 'int *' 
    error: command 'C:\\Users\\i054564\\AppData\\Local\\Programs\\Common\\Micros 
oft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2 

    ---------------------------------------- 
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\ 
\users\\i054564\\appdata\\local\\temp\\pip-build-0aufqt\\divisi2\\setup.py';exec 
(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), 
__file__, 'exec'))" install --record c:\users\i054564\appdata\local\temp\pip-5d 
xl7g-record\install-record.txt --single-version-externally-managed --compile" fa 
iled with error code 1 in c:\users\i054564\appdata\local\temp\pip-build-0aufqt\d 
ivisi2\ 

歓声、

Saurav

答えて

2

は、私は最終的に、すなわち

https://github.com/develersrl/gccwinbinariesを使用するように同僚からこのヒントを得た後、この問題を解決しました。

これで要件がインストールされ、divisi2をインストールできます。

関連する問題