onnx on OSX

onnx 文件可視化工具 here

在 mac 下安裝 onnx,
由於no checker if use conda install way #306, 需要使用從源碼安裝,

git clone  https://github.com/onnx/onnx
cd onnx
python setup.py install

會提示clang 錯誤,至少需要 OS X 10.7+

MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

然後又報錯,

/Users/deepmind/github/onnx/onnx/cpp2py_export.cc:1:10: fatal error: 'pybind11/pybind11.h' file not found
#include <pybind11/pybind11.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1

參考no checker if use conda install way #306,

git clone  --recursive https://github.com/onnx/onnx
cd onnx
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install

就安裝好了。

發佈了480 篇原創文章 · 獲贊 69 · 訪問量 63萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章