我一直试图从cmd安装一个名为“pyLDAvis”的package,但从一天以来一直没有成功!我从cmd运行了以下命令-
pip install pyldavis我已经安装了Microsoft C++ 2010。此外,我还执行了在https://stackoverflow.com/a/26513378/3228300中提到的步骤(安装Win SDK7.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桌面上运行Python3.4 (6 GB内存)。
发布于 2016-06-15 17:47:43
pyldavis不适用于windows机器,因为sci-kit生物包不是为windows二进制文件编译的。这似乎将在2016年中期上市。
您需要使用Linux或OSX才能让pyldavis正常工作。
https://stackoverflow.com/questions/32901540
复制相似问题