TensorFlow - 1 - Install and get start on Ubuntu 12
Reference: http://www.tensorfly.cn/tfdoc/get_started/os_setup.html
https://zhuanlan.zhihu.com/p/24055668
一、簡單安裝:
$ sudo pip install tensorflow
$ python
<<< import tensorflow as tf
二、原始碼級安裝:
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
From: http://blog.csdn.net/idwtwt/article/details/52332640
更新bazel版本:
$ echo "deb [arch=amd64]
http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
$ curl
https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install bazel
sudo apt-get upgrade bazel或者直接去下載安裝器:https://github.com/bazelbuild/bazel/releases總算可以了~
$ cd tensorflow
$ git clone --recurse-submodules https://github.com/tensorflow/tensorflow
$ sudo apt-get install python-numpy swig python-dev
$ ./configure
4. Compile Tensorflow:
$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
$ bazel build "//tensorflow:*"
附:Bazel編譯
$ git clone https://github.com/bazelbuild/bazel.git
$ cd bazel
$ git checkout tags/0.1.0
$ ./compile.sh
$ export PATH=$PATH:"output of babel"
相關文章
- Torch - 1 -- Install and Get Start on Ubuntu 12Ubuntu
- 開始 - Get Start
- ubuntu install fontsUbuntu
- ubuntu 12.10 sudo apt-get update 失敗Ubuntuapt-get
- Install Tensorflow on windows(Anaconda)Windows
- 在Ubuntu 18.04安裝tensorflow 1.12 GPU版本UbuntuGPU
- Install Chisel Tools on UbuntuUbuntu
- ubuntu for DP tools installUbuntu
- apt-get install **安裝opencvapt-getOpenCV
- ubuntu apt-get install xxx報錯無法下載的解決方法Ubuntuapt-get
- Ubuntu 18.04 install albertUbuntu
- Node JS Install - Ubuntu systemJSUbuntu
- Install qemu-arm for UbuntuUbuntu
- Ubuntu : apt-get 命令Ubuntuapt-get
- Ubuntu apt-get proxyUbuntuapt-get
- 使用 .NET MAUI 建立移動應用——Get StartUI
- MariaDB ubuntu install guideUbuntuGUIIDE
- Install erlang to Ubuntu 18.04 LTSUbuntu
- Install Rabbitmq to Ubuntu 18.04 LTSMQUbuntu
- Install Composer on Ubuntu 14.04Ubuntu
- Ubuntu install Atom via PPAUbuntu
- How to Install LibreOffice on UbuntuUbuntu
- ORACLE EBS INSTALL of ebs12 install packagesOraclePackage
- linuxmint apt-get install error:Depends...?Linuxapt-getError
- mariadb install on Ubuntu 16.04.1 LUbuntu
- Install Docker CE for Ubuntu 18.04 LTSDockerUbuntu
- Install Papirus Icon Theme on UbuntuAPIUbuntu
- How to install sougoupinyin on Debian/Ubuntu.GoUbuntu
- How To Install Vagrant IN Ubuntu14.04Ubuntu
- ubuntu 14.04 install docker latest dockerUbuntuDocker
- install redis and used in golang on ubuntu 14.04RedisGolangUbuntu
- ubuntu apt-get 解除安裝Ubuntuapt-get
- Ubuntu apt-get 安裝 MongoDBUbuntuapt-getMongoDB
- module ‘tensorflow‘ has no attribute ‘get_default_graph‘
- ElasticSearch 2 (1) - Getting StartElasticsearch
- tensorflow教程1
- Install Redis to Ubuntu18.04 LTSRedisUbuntu
- mariadb install on Ubuntu 16.04.1 LTS 薦Ubuntu