IT干货网

boost之构建 boost python 3.4 64位

Free-Thinker 2025年05月04日 编程设计 349 0

我正在尝试遵循Boost.python中的教程。

我的环境在标题中。

当我尝试bjam时,出现以下错误:

C:\local\boost_1_57_0\libs\python\example\tutorial>bjam.exe address-model=64 ...patience... ...patience... ...found 1894 targets... ...updating 6 targets... msvc.link.dll bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext.pyd

Creating library bin\msvc-12.0\debug\address-model-64\threading-multi\hello_e xt.pdb and object bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext .exp LINK : fatal error LNK1207: incompatible PDB format in 'C:\local\boost_1_57_0\li bs\python\example\tutorial\bin\msvc-12.0\debug\address-model-64\threading-multi\ hello_ext.pdb'; delete and rebuild

    call "C:\Users\Navid\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86_amd64 

.cmd" >nul link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X64 /MANIFEST /subsys tem:console /out:"bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext .pyd" /IMPLIB:"bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext.pd b" /LIBPATH:"C:\Python34\libs"
@"bin\msvc-12.0\debug\address-model-64\threadin g-multi\hello_ext.pyd.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link.dll bin\msvc-12.0\debug\address-model-64\threading-multi\hel lo_ext.pyd bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext.pdb bi n\msvc-12.0\debug\address-model-64\threading-multi\hello_ext.pdb... ...removing bin\msvc-12.0\debug\address-model-64\threading-multi\hello_ext.pdb ...skipped hello_ext.pyd for lack of hello_ext.pyd... copy bin\hello.test\msvc-12.0\debug\address-model-64\threading-multi\hello.py hello.py 1 file(s) copied. 2to3 bin\hello.test\msvc-12.0\debug\address-model-64\threading-multi\hello.py '2to3' is not recognized as an internal or external command, operable program or batch file. '2to3' is not recognized as an internal or external command, operable program or batch file.

2to3 -wn --no-diffs "bin\hello.test\msvc-12.0\debug\address-model-64\threadi 

ng-multi\hello.py" 2to3 -dwn --no-diffs "bin\hello.test\msvc-12.0\debug\address-model-64\thread ing-multi\hello.py"

...failed 2to3 bin\hello.test\msvc-12.0\debug\address-model-64\threading-multi\h ello.py... ...removing bin\hello.test\msvc-12.0\debug\address-model-64\threading-multi\hell o.py ...skipped hel lo for lack of

hello.py... ...failed updating 3 targets... ...skipped 3 targets...



我确定。\b2地址模型= 64和\turorial> bjam地址模型= 64

用户配置也被配置为


MSVC configuration.

using msvc : 12.0 ;


Python configuration.

Configure specific Python version. using python : 3.4 : C:\python34 : C:\Python34\include : C:\Python34\libs ;

请您参考如下方法:

我想谈谈如何纠正“2to3”未被识别为内部或外部命令,可操作程序或批处理文件。这意味着2to3不在您的路径中。
为了将其添加到您的路径,请遵循Python 2to3 windows CMD。遵循最后一个答案


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!