我正在尝试使用brew install --build-from-source --fresh -vd --with-python3 boost-python在OSX上安装boost-python,但在安装过程中,检测到的python是2.7:
==> Downloading https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2
Already downloaded: /Users/kp/Library/Caches/Homebrew/boost-python-1.66.0.tar.bz2
==> Verifying boost-python-1.66.0.tar.bz2 checksum
tar xjf /Users/kp/Library/Caches/Homebrew/boost-python-1.66.0.tar.bz2
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost-python/1.66.0_1 --libdir=/usr/local/Cellar/boost-python/1.66.0_1/lib --with-libraries=python --with-python=python
Building Boost.Build engine with toolset darwin... tools/build/src/engine/bin.macosxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /System/Library/Frameworks/Python.framework/Versions/2.7
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...在我的系统上,python是2.7,而python3是3.5。我想知道为什么./bootstrap使用--with-libraries=python --with-python=python而不是python3。
任何想法都很感谢。
发布于 2018-02-27 12:16:12
boost-python不再支持--with-python3标志。请尝试安装boost-python3。
https://stackoverflow.com/questions/48994346
复制相似问题