mac環境編譯facets

facets是Google開源的數據可視化工具。首頁:https://pair-code.github.io/facets/html

體驗:https://colab.research.google.com/github/PAIR-code/facets/blob/master/colab_facets.ipynb#scrollTo=XtOzRy8Z3M36python

1、相關依賴庫git

一、macOS:10.14.5github

二、python:2.7.2xcode

三、bazel:0.23.0(必須是0.23.0)https://github.com/bazelbuild/bazel/releases/tag/0.23.0,下載:bazel-0.23.0-installer-darwin-x86_64.sh工具

四、xcode:10.2.1ui

五、protobuf:3.8.0,安裝方法:http://www.javashuo.com/article/p-azaqfcyu-gt.htmlgoogle

2、編譯過程:.net

首先要保證已上依賴都已正確安裝。code

一、clone代碼到本地:https://github.com/PAIR-code/facets,並cd到facets根目錄

二、在facets頂層目錄執行:bazel build facets:facets_jupyter。若是須要在jupyter notebook中使用,請參考:https://github.com/PAIR-code/facets

三、等待編譯完成。編譯完畢後,會在生成bazel-genfiles/facets目錄下生成:facets-jupyter.html

相關文章
相關標籤/搜索