ldgyb
2019-01-31 10:52
采纳率: 100%
浏览 2.9k
已采纳

大神给我讲讲python中build是怎么回事吧

有时候装一个第三方库时,看到除了安装还有build,比如这下面这个:

Get segyio

A copy of segyio is available both as pre-built binaries and source code:

In Debian unstable
apt install python3-segyio
Wheels for Python from PyPI
pip install segyio
Source code from github
git clone https://github.com/statoil/segyio
Source code in tarballs
Build segyio

To build segyio you need:

A C99 compatible C compiler (tested mostly on gcc and clang)
A C++ compiler for the Python extension, and C++11 for the tests
CMake version 2.8.12 or greater
Python 2.7 or 3.x.
numpy version 1.10 or greater
setuptools version 28 or greater
setuptools-scm
pytest
To build the documentation, you also need sphinx

To build and install segyio, perform the following actions in your console:

git clone https://github.com/Statoil/segyio
mkdir segyio/build
cd segyio/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

我pip install 这个segyio包不是就可以用了吗?还需要build吗?这个build是什么意思呢?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题