我想创建一个小型C ++库并使用Boost :: Python for Python接口。它应该支持两个版本的Python:2和3。
如this问题中所述,我在user-config.jam
中创建了boost\tools\build\src
文件,其内容如下:
using python : 2.7 : C:\\Python27amd64 ;
using python : 3.6 : "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64" ;
然后我运行了bootstrap
和.\b2 python=3.6,2.7
。
我收到此错误:
C:/boost/tools/build/src/build\feature.jam:491: in feature.validate-value-string from module feature
error: "3.6" is not a known value of feature <python>
error: legal values: "2.7"
C:/boost/tools/build/src/build\property.jam:341: in validate1 from module property
C:/boost/tools/build/src/build\property.jam:367: in property.validate from module property
C:/boost/tools/build/src/build\build-request.jam:271: in convert-command-line-element from module build-request
C:/boost/tools/build/src/build\build-request.jam:222: in build-request.convert-command-line-elements from module build-request
C:/boost/tools/build/src\build-system.jam:774: in load from module build-system
C:\boost\tools\build\src/kernel\modules.jam:295: in import from module modules
C:\boost\tools\build\src/kernel/bootstrap.jam:139: in boost-build from module
C:\boost\boost-build.jam:17: in module scope from module
我该如何解决?