Visual Studio 2019(Windows 10和Python 3.64)上安装Boost.Python的困难

2024-05-17 19:30:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试安装Booost .python,因为我需要在C++应用程序中使用一些Python代码。我按照boost.org上的说明安装了boost 1.74

我做了引导和.\b2

一切似乎都很顺利,直到我在stage\lib文件夹中找不到任何boostpython库(vc142)。看起来b2找不到任何python安装,但我认为我使用的是python路径: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64

我做错了什么?? 你能帮我做一个hello单词的例子吗

boost1.74文件夹

enter image description here

产出:

enter image description here

enter image description here

enter image description here

enter image description here


Tags: 代码org路径文件夹应用程序libfilesprogram