question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot find pybind while installing onnx master

See original GitHub issue

context: win7, miniConda3 Error:

`CMake Warning at CMakeLists.txt:353 (find_package):
  By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "pybind11",
  but CMake did not find one.

  Could not find a package configuration file provided by "pybind11"
  (requested version 2.2) with any of the following names:

    pybind11Config.cmake
    pybind11-config.cmake

  Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set
  "pybind11_DIR" to a directory containing one of the above files.  If
  "pybind11" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at CMakeLists.txt:362 (message):
  cannot find pybind`

I have installed the pybind11 master branch. But still hit this error. I tried to find thoes two files but failed. Can anyone advise?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

3reactions
Joffreybvncommented, Mar 15, 2021

I had this issue while trying to build ONNX locally within a virtualenv. Solved this way:

Be sure to have Cmake:

sudo snap install cmake --classic

Clone, build and install

  1. Clone the repo:
git clone https://github.com/pybind/pybind11.git 
cd pybind11 
mkdir build 
cd build 
  1. Set the python virtualenv you use with Onnx With pyenv: pyenv local 3.8.x
  2. Build
cmake .. 
sudo make install

Pybind is installed for Python 3.8 in /usr/local/include/pybind11

3reactions
blokhincommented, May 6, 2019

Still an issue for me, as I’m not a conda user 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make cmake find pybind11 - Stack Overflow
cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "pybind11", but CMake did not find one...
Read more >
mmcv Changelog - pyup.io
You can find previous versions compiled with PyTorch 1.3 & 1.4 [here](https://github.com/open-mmlab/mmcv/blob/master/docs/get_started/previous_versions.md).
Read more >
Release 0.11.0 MMDeploy Contributors
After the installation, you can enjoy the model deployment journey starting from converting PyTorch model to backend.
Read more >
PROCESSOR-SDK-AM64X: tisdk build failure - TI E2E
'git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master ... -yocto-build-failure-while-trying-to-fetch-repository as follows:.
Read more >
Can not Install ONNX==1.4.1 on Jetson Xavier
but CMake did not find one. Could not find a package configuration file provided by "pybind11" (requested version 2.2) with any of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found