[英]Installing the same version of pyenv and boost_python
I have installed python by pyenv我已经通过 pyenv 安装了 python
$which python
/Users/whitebear/.pyenv/shims/python
$python -V
Python 3.7.9
However in /Users/whitebear/.pyenv/versions/3.7.9/lib/
,there is no libboost_python**
但是在
/Users/whitebear/.pyenv/versions/3.7.9/lib/
中,没有libboost_python**
So I installed by brew brew install python-boost
.所以我通过 brew
brew install python-boost
。
It is installed in /usr/local/Cellar/boost-python3/1.75.0/
它安装在
/usr/local/Cellar/boost-python3/1.75.0/
However there is only libboost_python39**
and libboost_numpy39
但是只有
libboost_python39**
和libboost_numpy39
My python version is 3.7.9 though.我的 python 版本是 3.7.9。
How can I install boost_python
for pyenv
the same version??如何为
boost_python
安装相同版本的pyenv
?
Please see https://github.com/pyenv/pyenv/issues/585请参阅https://github.com/pyenv/pyenv/issues/585
You need to build boost against the python version you installed in your pyenv您需要针对安装在 pyenv 中的 python 版本构建提升
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.