Backend/Python & Blockchain
[TensorFlow] 설치하기
romeoh
2019. 6. 26. 03:22
반응형
tensorflow설치하기
$ pip3 install tensorflow
설치확인
$ pip3 show tensorflow
Name: tensorflow
Version: 2.0.0
Summary: TensorFlow is an open source machine learning framework for everyone.
.....
python idle 실행하기
응용프로그램 > Python 3.7 > IDLE.app 을 실행합니다.
File > New File을 실행합니다.
import tensorflow as tf
hello = tf.constant("hello world!")
session = tf.compat.v1.Session()
print(session.run(hello))
hello world 프로그램 코드를 작성합니다.
적당한 위치에 저장 hello.py로 저장하고
Run > Run Module을 실행합니다.
hello world! 가 찍힌것을 확인 할 수 있습니다.
hello world! 앞에 붙은 b' 는 byte라는 의미 입니다.
반응형