tensor flow在mac下的编译与安装
2016-06-07 15:17
211 查看
Mac OS X 安装
1:安装Bazel
1. Install Homebrew on Mac OS X (one time setup)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"[/code]
2. Install Bazel using Homebrew$ brew install bazel
Once installed, you can upgrade to newer version of Bazel with:$ brew upgrade bazel
2:SWIG
http://prdownloads.sourceforge.net/swig/swig-3.0.8.tar.gz$ ./configure $ make $ make install
3:bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
遇到问题:
ERROR: /Users/aiven/Works/openSource/deepLearning/tensorflow/tensorflow/core/distributed_runtime/rpc/BUILD:199:1: no such package '@grpc//': Error cloning repository: SSL peer shut down incorrectly caused by SSL peer shut down incorrectly caused by SSL peer
shut down incorrectly and referenced by '//tensorflow/core/distributed_runtime/rpc:grpc_master_service_impl'.
解决方法:
For git 1.6.1 or above you can use something similar to (modified to suit):git submodule foreach git pull origin master
4:bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
相关文章推荐
- 0002_break和continue
- iOS编译FFmpeg及使用实现视频播放
- web项目开发 之 前端规范 --- JSON数据传输规范
- jsp页面上截取字符串
- MvcMusicStore学习中常出现的一个BUG
- js 解析XML 在Edge浏览器下面 无法准确读到节点属性值
- js闭包应用
- 【原】MyBatis执行DDL:create table,drop table等等
- 运算符的重载(复数的加减)
- 机器学习--时间序列中常用预测技术
- 浅谈五大Python Web框架
- MySQL存储过程中使用SELECT …INTO语句为变量赋值
- Git Stash用法
- HDU 1491 Octorber 21st
- mq的消息调用
- tjut 5297
- JAVA进行密码加盐
- Mirantis对OpenStack的性能测试:高并发创建75000台虚拟机
- 时间选择器
- 史上最详细的CocoaPods安装教程