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

相关文章
相关标签/搜索