问题
I see form my project document that I need to install python-pybind11
by using
sudo apt -y install python-pybind11
but I got error like this:
Reading package lists... Done
Building dependency tree
Reading state information... DoneE: Unable to locate package python-pybind11
I'm not sure if python-pybind11
is a valid package, where can I check it?
回答1:
Use this to install pybind11:
pip install pybind11
Refer from Here.
回答2:
In Ubuntu 18.04
apt-get install python-pybind11
On Mac,
brew install pybind11
In Ubuntu 16.04, you'll need to install yourself. One way is as follows:
# Some prerequisites (but not all of them)
apt-get install cmake
pip3 install pytest
# Clone, build and install
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build
cd build
cmake ..
make install
Reference
来源:https://stackoverflow.com/questions/54704599/how-to-apt-install-python-pybind11