首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用brew为python3安装boost-python

使用brew为python3安装boost-python
EN

Stack Overflow用户
提问于 2018-02-27 01:55:53
回答 1查看 1.9K关注 0票数 1

我正在尝试使用brew install --build-from-source --fresh -vd --with-python3 boost-python在OSX上安装boost-python,但在安装过程中,检测到的python是2.7:

代码语言:javascript
复制
==> 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

任何想法都很感谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-27 12:16:12

boost-python不再支持--with-python3标志。请尝试安装boost-python3

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48994346

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档