pip install ldavis期间出错

时间:2015-10-02 06:18:56

标签: python-3.x package pip lda installation-package

我一直在尝试安装一个名为' pyLDAvis'的Python包。从cmd开始,一天之内没有成功! 我从cmd运行以下命令 -

pip install pyldavis

我已经安装了Microsoft Visual C ++ 2010。 此外,我还执行了https://stackoverflow.com/a/26513378/3228300中提到的步骤(安装Win SDK 7.1,更改可再发行的pkgs并创建vcvars64.bat文件)。可悲的是,我不知道如何继续前进。我正在粘贴代码片段,当安装停在下面时,它会向我抛出 -

    c:\users\ABC\anaconda3\lib\site-packages\numpy\core\include\num
py\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disab
le it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\link.exe /D
LL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Users\ABC\Anaconda3\libs" "
/LIBPATH:C:\Users\ABC\Anaconda3\PCbuild\amd64" /EXPORT:PyInit___sub
sample build\temp.win-amd64-3.4\Release\skbio/stats/__subsample.obj /OUT:build\l
ib.win-amd64-3.4\skbio\stats\__subsample.pyd /IMPLIB:build\temp.win-amd64-3.4\Re
lease\skbio/stats\__subsample.lib /MANIFESTFILE:build\temp.win-amd64-3.4\Release
\skbio/stats\__subsample.pyd.manifest
    __subsample.obj : warning LNK4197: export 'PyInit___subsample' specified mul
tiple times; using first specification
       Creating library build\temp.win-amd64-3.4\Release\skbio/stats\__subsample
.lib and object build\temp.win-amd64-3.4\Release\skbio/stats\__subsample.exp
    building 'skbio.alignment._ssw_wrapper' extension
    creating build\temp.win-amd64-3.4\Release\skbio\alignment
    creating build\temp.win-amd64-3.4\Release\skbio\alignment\_lib
    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\cl.exe /c /
nologo /Ox /MD /W3 /GS- /DNDEBUG "-IC:\Users\ABC\Anaconda3\lib\site
-packages\numpy\core\include" "-IC:\Users\ABC\Anaconda3\include" "-
IC:\Users\ABC\Anaconda3\include" /Tcskbio/alignment/_ssw_wrapper.c
/Fobuild\temp.win-amd64-3.4\Release\skbio/alignment/_ssw_wrapper.obj -Wno-error=
declaration-after-statement
    cl : Command line error D8021 : invalid numeric argument '/Wno-error=declara
tion-after-statement'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\B
in\\amd64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command ""C:\Users\ABC\Anaconda3\python.exe" -c "import setuptools,
 tokenize;__file__='C:\\Users\\ABC1\\AppData\\Local\\Temp\\pip-build-cp30pok
9\\scikit-bio\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).
read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\ABC1\AppData\Local\Temp\pip-hto4uniu-record\install-record.txt --single-version-
externally-managed --compile" failed with error code 1 in C:\Users\ABC1\AppD
ata\Local\Temp\pip-build-cp30pok9\scikit-bio

欢迎任何帮助我摆脱这种情况的建议。 附:我在Windows 7桌面(6 GB ram)上运行Python 3.4。

1 个答案:

答案 0 :(得分:1)

pyldavis不适用于Windows机器,因为sci-kit bio包不是为windows二进制文件编译的......似乎这将在2016年中期开始。

您将需要使用Linux或OSX来使pyldavis正常工作。