mac环境编译facets

原创
2019/06/24 16:56
阅读数 518

facets是Google开源的数据可视化工具。首页:https://pair-code.github.io/facets/

体验:https://colab.research.google.com/github/PAIR-code/facets/blob/master/colab_facets.ipynb#scrollTo=XtOzRy8Z3M36

一、相关依赖库

1、macOS:10.14.5

2、python:2.7.2

3、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

4、xcode:10.2.1

5、protobuf:3.8.0,安装方法:https://my.oschina.net/u/2391658/blog/3064621

二、编译过程:

首先要保证已上依赖都已正确安装。

1、clone代码到本地:https://github.com/PAIR-code/facets,并cd到facets根目录

2、在facets顶层目录执行:bazel build facets:facets_jupyter。如果需要在jupyter notebook中使用,请参考:https://github.com/PAIR-code/facets

3、等待编译完成。编译完毕后,会在生成bazel-genfiles/facets目录下生成:facets-jupyter.html

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部