python3.6安装第三方库pydensecrf过程中遇到的错误
我在尝试安装pydensecrf的时候抛出如下异常:
PS C:\pydensecrf-1.0rc2> python .\setup.py install
running install
running bdist_egg
running egg_info
writing pydensecrf.egg-info\PKG-INFO
writing dependency_links to pydensecrf.egg-info\dependency_links.txt
writing top-level names to pydensecrf.egg-info\top_level.txt
reading manifest file 'pydensecrf.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pydensecrf.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'pydensecrf.eigen' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ipydensecrf/densecrf/include -Ipydensecrf -IC:\Users\kirai\Anaconda3\include -IC:\Users\kirai\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" /EHsc /Tppydensecrf/eigen.cpp /Fobuild\temp.win-amd64-3.6\Release\pydensecrf/eigen.obj
eigen.cpp
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(120): error C2373: “Eigen::DenseBase<Derived>::segment”: 重定义;不同的类型修饰符
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/DenseBase.h(291): note: 参见“Eigen::DenseBase<Derived>::segment”的声明
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(121): error C2447: “{”: 缺少函数标题(是 否是老式的形式表?)
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(152): error C2373: “Eigen::DenseBase<Derived>::head”: 重定义;不同的类型修饰符
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/DenseBase.h(294): note: 参见“Eigen::DenseBase<Derived>::head”的声明
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(153): error C2447: “{”: 缺少函数标题(是 否是老式的形式表?)
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(184): error C2373: “Eigen::DenseBase<Derived>::tail”: 重定义;不同的类型修饰符
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/DenseBase.h(297): note: 参见“Eigen::DenseBase<Derived>::tail”的声明
c:\pydensecrf-1.0rc2\pydensecrf\densecrf\include\eigen\src/Core/VectorBlock.h(185): error C2447: “{”: 缺少函数标题(是 否是老式的形式表?)
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.13.26128\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
PS C:\pydensecrf-1.0rc2>
我想知道怎么解决这个问题,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论