I want to install boost.python for the installation of dlib library.
-
1FYI, now you can simply install **dlib** using pip as follows: `pip install dlib` – Aditya Sep 16 '18 at 16:41
3 Answers
You have to compile it for the platform. I believe PIP alone cannot accomplish that feat. You'll have to navigate the arcanery of bjam and boost build. God speed.

- 61
- 3
I don't believe pip is able to do that (at least not yet).
If you want to avoid learning the boost build system and tools (b2, previously bjam), pre-compiled boost libraries can be installed via an executable: https://sourceforge.net/projects/boost/files/boost-binaries/
This installs all Boost libraries, including Boost Python, and will use the default Python installation to build Boost Python unless you modify PATH first.
The link seem to only provide Windows executables. For other operating systems, similar solutions probably exists. Here is one for ubuntu: How to Install boost on Ubuntu?

- 83
- 6
Following command worked for me,
pip3 install boost

- 1,553
- 3
- 16
- 34
-
4I really don't think OP was looking for a way to [boost automatically toots from users of the Mastodon social network](https://pypi.org/project/boost/) ;) – Nuno André Jan 19 '21 at 03:12