pip install ldavis 期间出错

Error during pip install ldavis

我一直在尝试从 cmd 安装一个名为 'pyLDAvis' 的 Python 软件包,但一天多以来都没有成功! 我 运行 来自 cmd 的以下命令 -

pip install pyldavis

我已经安装了Microsoft Visual C++ 2010。 此外,我还执行了 中提到的步骤(安装 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

欢迎任何帮助我摆脱这种情况的建议。 P.S。我 运行 Python 3.4 在 Windows 7 桌面(6 GB 内存)上。

pyldavis 不适用于 windows 机器,因为 sci-kit bio 包不是为 windows 二进制文件编译的...看来这将在 2016 年年中可用。

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