python安装pyltp提示cl.exe' failed with exit status 2.
python3.6.3,64位,安装VS2015和visual studio 2017 community之后,都会提示cl.exe' failed with exit status 2.百度的各种方法都试了,还是不行。求各位大神帮忙一下
具体提示信息如下:
D:\我的软件\pyltp-master>python setup.py install
running install
running bdist_egg
running egg_info
writing pyltp.egg-info\PKG-INFO
writing dependency_links to pyltp.egg-info\dependency_links.txt
writing top-level names to pyltp.egg-info\top_level.txt
reading manifest file 'pyltp.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.h' under directory 'ltp\src'
warning: no files found matching '.h' under directory 'ltp\src\framework'
warning: no files found matching '.hpp' under directory 'ltp\src\framework'
warning: no files found matching '.h' under directory 'ltp\src\utils'
warning: no files found matching '.hpp' under directory 'ltp\src\utils'
warning: no files found matching '.tab' under directory 'ltp\src\utils'
warning: no files found matching '.cpp' under directory 'ltp\src\segmentor'
warning: no files found matching '.h' under directory 'ltp\src\segmentor'
warning: no files found matching '.hpp' under directory 'ltp\src\segmentor'
warning: no files found matching '.cpp' under directory 'ltp\src\postagger'
warning: no files found matching '.h' under directory 'ltp\src\postagger'
warning: no files found matching '.hpp' under directory 'ltp\src\postagger'
warning: no files found matching '.cpp' under directory 'ltp\src\ner'
warning: no files found matching '.h' under directory 'ltp\src\ner'
warning: no files found matching '.hpp' under directory 'ltp\src\ner'
warning: no files found matching '.cpp' under directory 'ltp\src\parser.n'
warning: no files found matching '.h' under directory 'ltp\src\parser.n'
warning: no files found matching '.hpp' under directory 'ltp\src\parser.n'
warning: no files found matching '.cpp' under directory 'ltp\src\srl'
warning: no files found matching '.h' under directory 'ltp\src\srl'
warning: no files found matching '.h' under directory 'ltp\thirdparty\boost'
warning: no files found matching '.hpp' under directory 'ltp\thirdparty\boost'
warning: no files found matching '.cpp' under directory 'ltp\thirdparty\boost'
warning: no files found matching '.ipp' under directory 'ltp\thirdparty\boost'
warning: no files found matching '' under directory 'ltp\thirdparty\eigen'
warning: no files found matching '' under directory 'ltp\thirdparty\dynet'
warning: no files found matching '.h' under directory 'ltp\thirdparty\maxent'
warning: no files found matching '.cpp' under directory 'ltp\thirdparty\maxent'
writing manifest file 'pyltp.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'pyltp' extension
D:\VS2017\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iltp/include/ -Iltp/thirdparty/boost/include/ -Iltp/thirdparty/dynet/ -Iltp/thirdparty/eigen/ -Iltp/thirdparty/maxent/ -Iltp/src/ -Iltp/src/splitsnt -Iltp/src/segmentor/ -Iltp/src/postagger/ -Iltp/src/ner/ -Iltp/src/parser.n/ -Iltp/src/srl/ -Iltp/src/srl/common/ -Iltp/src/srl/include/ -Iltp/src/srl/Pi/ -Iltp/src/srl/Srl/ -Iltp/src/srl/tool/ -Iltp/src/utils/ -Ipatch/include/ -ID:\SOFTWARE\Python\include -ID:\SOFTWARE\Python\include -ID:\VS2017\VC\Tools\MSVC\14.12.25827\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /EHsc /Tpsrc\pyltp.cpp /Fobuild\temp.win-amd64-3.6\Release\src\pyltp.obj /DNOMINMAX /DBOOST_PYTHON_SOURCE /DBOOST_PYTHON_STATIC_LIB /DBOOST_ALL_NO_LIB /D_WINDOWS /EHsc
pyltp.cpp
Unknown compiler version - please run the configure tests and report the results
patch/include/boost/python/detail/caller.hpp(55): warning C4244: “return”: 从“Py_ssize_t”转换到“unsigned int”,可能丢失 数据
src\pyltp.cpp(17): fatal error C1083: 无法打开包括文件: “SplitSentence.h”: No such file or directory
error: command 'D:\VS2017\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe' failed with exit status 2