일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- graph
- 그래프
- Cypher
- DeepLearning
- 그래프 질의언어
- spark
- 그래프 에코시스템
- Graph Tech
- Graph Ecosystem
- SQL
- 분산 병렬 처리
- GraphX
- 연합학습
- SparkML
- 인공지능
- graph database
- TigerGraph
- Federated Learning
- GDB
- Python
- RDD
- GSQL
- RStudio
- 그래프 데이터베이스
- TensorFlow
- 빅데이터
- r
- 딥러닝
- Neo4j
- BigData
- Today
- Total
Hee'World
TensorFlow 설치 본문
<TensorFlow 설치>
설치환경
- Ubuntu Server 14.04.4
- Virtualenv
- Python 2.7.11
1. Virtualenv 환경에서 설치환경에 맞게 설치를 진행한다.
- 저는 pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl로 설치 진행하였습니다.
* Python 2
# Ubuntu/Linux 64-bit, CPU only:
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled. Requires CUDA toolkit 7.5 and CuDNN v4. For
# other versions, see "Install from sources" below.
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only:
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py2-none-any.whl
* Python 3
# Ubuntu/Linux 64-bit, CPU only:
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled. Requires CUDA toolkit 7.5 and CuDNN v4. For
# other versions, see "Install from sources" below.
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
# Mac OS X, CPU only:
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0-py3-none-any.whl
2. python에 접속 후 import tensorflow as tf를 입력하여 설치를 확인합니다.
- 간단히 예제코드를 실행하여 봅니다
import tensorflow as tf
hello = tf.constant("Hello, TensorFlow!!")
sess = tf.Session()
print(sess.run(hello))
a = tf,constant(10)
b = tf.constant(32)
print(sess.run(a + b))
<끝>
- https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#virtualenv-installation
'Programming > Python' 카테고리의 다른 글
Ubuntu apt-get install시에 404 Not Found [IP: XX.XX.XXX.XX]에러 발생시 (0) | 2016.06.17 |
---|---|
Anaconda3 Windows Opencv3 install (0) | 2016.06.09 |
OpenCV 패키지 설치 [Windows] (0) | 2016.06.07 |
머신러닝 인 액션 2.2.2 예제 에러 (0) | 2016.04.24 |
module 불러오기 (0) | 2015.08.08 |