ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 윈도우에 tensorflow 설치하기
    Machine Learning 2017. 4. 10. 09:00
    반응형
    OS : windows 10

    python 3.5.2 설치하기
    tensorflow 홈페이지에는 3.5.X 버전을 사용하면 된다고 나와있긴한데 3.5.1에서는 설치가 안되고 3.5.2에서는 설치가 된다.(2017. 4. 9)

    python 3.5.2 다운로드

    설치하고나서 터미널에서 python이나 pip3를 찾을수 없는 경우에는 시스템 환경변수 path에 python 3.5.2 경로를 추가해 주면 된다.
    C:\Users\wcjung\AppData\Local\Programs\Python\Python35
    C:\Users\wcjung\AppData\Local\Programs\Python\Python35\Scripts

     
    tensorflow 설치하기
    pip로 아래 명령으로 설치하면 된다.
    C:\> pip3 install --upgrade tensorflow


    설치됐는지 확인하려면 아래 테스트 코드를 돌려보면 된다.
    import tensorflow as tf

    hello = tf.constant('Hello, TensorFlow!')
    sess = tf.Session()
    print(sess.run(hello))


    참고


    반응형

    댓글

Designed by Tistory.