我一直在尝试从 cmd 安装名为 'pyLDAvis' 的 Python 包,但一天多以来一直没有成功!我从 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
欢迎任何帮助我摆脱这种情况的建议。PS 我在 Windows 7 桌面(6 GB 内存)上运行 Python 3.4。