Take off

블로그 이미지
by 안.들
  • Total hit
  • Today hit
  • Yesterday hit

'Anaconda'에 해당되는 글 1건

  1. 2017.02.19
    ubuntu에 tensorflow설치 (Anaconda 포함).


아나콘다 설치

$ bash Anaconda2-4.3.0-Linux-x86_64.sh


Anaconda2 will now be installed into this location:
/home/계정/anaconda2

[/home/계정/anaconda2] >>> 
PREFIX=/home/계정/anaconda2
installing: python-2.7.13-0 ...


Do you wish the installer to prepend the Anaconda2 install location
to PATH in your /home/계정/.bashrc ? [yes|no]
[no] >>> yes

Prepending PATH=/home/계정/anaconda2/bin to PATH in /home/계정/.bashrc
A backup will be made to: /home/계정/.bashrc-anaconda2.bak



계정@컴퓨터:~$ conda create -n tensorflow python=2.7

Fetching package metadata .........

Solving package specifications: .


Package plan for installation in environment /home/계정/anaconda2/envs/tensorflow:

The following NEW packages will be INSTALLED:

    openssl:    1.0.2k-0     

    pip:        9.0.1-py27_1 

    python:     2.7.13-0     

    readline:   6.2-2        

    setuptools: 27.2.0-py27_0

    sqlite:     3.13.0-0     

    tk:         8.5.18-0     

    wheel:      0.29.0-py27_0

    zlib:       1.2.8-3      

Proceed ([y]/n)? y


openssl-1.0.2k 100% |################################| Time: 0:00:00  11.58 MB/s

....


#

# To activate this environment, use:

# > source activate tensorflow

#

# To deactivate this environment, use:

# > source deactivate tensorflow

#


To use tensorflow with IPython it may be necessary to install IPython into the tensorflow environment:

$ source activate tensorflow
(tensorflow)$ conda install ipython
Package plan for installation in environment /home/계정/anaconda2/envs/tensorflow:

The following NEW packages will be INSTALLED:

    backports:         1.0-py27_0   
    decorator:         4.0.11-py27_0
    enum34:            1.1.6-py27_0 
    get_terminal_size: 1.0.0-py27_0 
    ipython:           5.2.2-py27_0 
    ipython_genutils:  0.1.0-py27_0 
    path.py:           10.1-py27_0  
    pathlib2:          2.2.0-py27_0 
    pexpect:           4.2.1-py27_0 
    pickleshare:       0.7.4-py27_0 
    prompt_toolkit:    1.0.9-py27_0 
    ptyprocess:        0.5.1-py27_0 
    pygments:          2.1.3-py27_0 
    scandir:           1.4-py27_0   
    simplegeneric:     0.8.1-py27_1 
    six:               1.10.0-py27_0
    traitlets:         4.3.1-py27_0 
    wcwidth:           0.1.7-py27_0 

Proceed ([y]/n)? y

backports-1.0- 100% |################################| Time: 0:00:00 461.14 kB/s
.....

(tensorflow) 계정@컴퓨터:~$ 

activate tensorflow상태에서
pip로 Tensorflow 설치하기 library 전체 설치.

(tensorflow) 계정@컴퓨터:~$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
(tensorflow) 계정@컴퓨터:~$ pip install --ignore-installed --upgrade $TF_BINARY_URL

Collecting tensorflow==0.10.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
  Downloading https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl (36.6MB)
Collecting six>=1.10.0 (from tensorflow==0.10.0)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting numpy>=1.8.2 (from tensorflow==0.10.0)
  Downloading numpy-1.12.0-cp27-cp27mu-manylinux1_x86_64.whl (16.5MB)
Collecting mock>=2.0.0 (from tensorflow==0.10.0)
  Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
Collecting wheel (from tensorflow==0.10.0)
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
Collecting protobuf==3.0.0b2 (from tensorflow==0.10.0)
  Downloading protobuf-3.0.0b2-py2.py3-none-any.whl (326kB)
Collecting funcsigs>=1; python_version < "3.3" (from mock>=2.0.0->tensorflow==0.10.0)
  Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock>=2.0.0->tensorflow==0.10.0)
  Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB)
Collecting setuptools (from protobuf==3.0.0b2->tensorflow==0.10.0)
  Downloading setuptools-34.2.0-py2.py3-none-any.whl (389kB)
Collecting packaging>=16.8 (from setuptools->protobuf==3.0.0b2->tensorflow==0.10.0)
  Downloading packaging-16.8-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools->protobuf==3.0.0b2->tensorflow==0.10.0)
  Downloading appdirs-1.4.0-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools->protobuf==3.0.0b2->tensorflow==0.10.0)
  Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)
Installing collected packages: six, numpy, funcsigs, pbr, mock, wheel, pyparsing, packaging, appdirs, setuptools, protobuf, tensorflow
Successfully installed appdirs-1.4.0 funcsigs-1.0.2 mock-2.0.0 numpy-1.12.0 packaging-16.8 pbr-1.10.0 protobuf-3.0.0b2 pyparsing-2.1.10 setuptools-34.2.0 six-1.10.0 tensorflow-0.10.0 wheel-0.29.0
(tensorflow) 계정@컴퓨터:~$ 



파이슨에서 tensorflow 라이브러리 사용가능한지 테스트.
라이브러리 참조되면 정상적으로 설치된 것.

run tensorflow on Terminal.

계정@컴퓨터:~$ source activate tensorflow
(tensorflow) 계정@컴퓨터:~$ python
Python 2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import tensorflow as tf
>>> hello = tf.constant('hey jin, good job!')
>>> sess = ft.Session()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'ft' is not defined
>>> sess = tf.Session()
>>> print(sess.run(hello))
hey jin, good job!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print(sess.run(a - b))
-22
>>> exit()
(tensorflow) 계정@컴퓨터:~$ 









참고) https://www.tensorflow.org/versions/r0.10/get_started/os_setup

'Deep Learning' 카테고리의 다른 글

Ubuntu NVIDIA GPU check  (0) 2017.02.19
docker machine이란?  (0) 2016.12.02
tensorflow installation.  (0) 2016.11.30
deep learning / machine learning  (0) 2016.11.26
site 실패한 수차례의 로그인 시도를 제한하는 로직  (0) 2016.11.24
AND

ARTICLE CATEGORY

분류 전체보기 (66)
금융 (0)
관제 (4)
Unix (1)
Android (6)
Windows (2)
Java (4)
oracle (3)
web (3)
English (3)
Physics (1)
Books (6)
요리 (1)
Deep Learning (6)
IoT (21)
to-do list (0)
Music (1)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/05   »
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

ARCHIVE