ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 아나콘다 = miniconda3 = 라즈베리파이 설치
    라즈베리파이3 B+ 2019. 10. 30. 13:21

    wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh

    sudo chmod +x Miniconda3-latest-Linux-armv7l.sh

    암호입력

    ./Miniconda3-latest-Linux-armv7l.sh

     

    Anaconda END USER LICENSE AGREEMENT 가 나오면 yes

     

    설치위치 지정 = 기본값 = enter

    Miniconda3 will now be installed into this location:
    /home/raja/miniconda3

     

    bash path 설정 = 기본값 = yes

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

    Prepending PATH=/home/raja/miniconda3/bin to PATH in /home/raja/.bashrc
    A backup will be made to: /home/raja/.bashrc-miniconda3.bak

     

    더보기

    명령어 conda

    raja@piplus:~ $ conda
    usage: conda [-h] [-V] [--debug] command ...

    conda is a tool for managing and deploying applications, environments and packages.

    Options:

    positional arguments:
      command
        info         Display information about current conda install.
        help         Displays a list of available conda commands and their help
                     strings.
        list         List linked packages in a conda environment.
        search       Search for packages and display their information. The input
                     is a regular expression. To perform a search with a search
                     string that starts with a -, separate the search from the
                     options with --, like 'conda search -- -h'. A * in the
                     results means that package is installed in the current
                     environment. A . means that package is not installed but is
                     cached in the pkgs directory.
        create       Create a new conda environment from a list of specified
                     packages.
        install      Install a list of packages into a specified conda
                     environment.
        update       Update conda packages to the current version.
        remove       Remove a list of packages from a specified conda environment.
        uninstall    Alias for conda remove. See conda remove --help.
        run          Launches an application installed with conda. To include
                     command line options in a command, separate the command from
                     the other options with --, like conda run -- ipython
                     --matplotlib
        config       Modify configuration values in .condarc. This is modeled
                     after the git config command. Writes to the user .condarc
                     file (/home/raja/.condarc) by default.
        init         Initialize conda into a regular environment (when conda was
                     installed as a Python package, e.g. using pip). (DEPRECATED)
        clean        Remove unused packages and caches.
        package      Low-level conda package utility. (EXPERIMENTAL)
        bundle       Create or extract a "bundle package" (EXPERIMENTAL)

    optional arguments:
      -h, --help     Show this help message and exit.
      -V, --version  Show the conda version number and exit.
      --debug        Show debug output.

    external commands:
        env          positional arguments:
                       {attach,create,export,list,remove,upload,update}
                         attach              Embeds information describing your conda environment
                                             into the notebook metadata
                         create              Create an environment based on an environment file
                         export              Export a given environment
                         list                List the Conda environments
                         remove              Remove an environment
                         upload              Upload an environment to anaconda.org
                         update              Update the current environment based on environment
                                             file

     


     

    conda install anaconda-client

    conda create -n condaVEnv00 python=3

    conda config --add channels rpi

    conda install numpy

     

    더보기

    raja@piplus:~ $ conda install anaconda-client
    Fetching package metadata: ....
    Solving package specifications: ...........
    Package plan for installation in environment /home/raja/miniconda3:

    The following packages will be downloaded:

        package                    |            build
        ---------------------------|-----------------
        jpeg-8d                    |                0         742 KB
        libpng-1.6.17              |                0         200 KB
        freetype-2.5.2             |                2         2.3 MB
        libtiff-4.0.2              |                1         865 KB
        pillow-2.9.0               |           py34_0         747 KB
        pytz-2015.4                |           py34_0         173 KB
        setuptools-18.1            |           py34_0         345 KB
        six-1.9.0                  |           py34_0          17 KB
        wheel-0.24.0               |           py34_0          77 KB
        clyent-0.4.0               |           py34_0          15 KB
        pip-7.1.2                  |           py34_0         1.5 MB
        python-dateutil-2.4.2      |           py34_0         220 KB
        anaconda-client-1.0.2      |           py34_0          92 KB
        ------------------------------------------------------------
                                               Total:         7.2 MB

    The following NEW packages will be INSTALLED:

        anaconda-client: 1.0.2-py34_0 
        clyent:          0.4.0-py34_0 
        freetype:        2.5.2-2      
        jpeg:            8d-0         
        libpng:          1.6.17-0     
        libtiff:         4.0.2-1      
        pillow:          2.9.0-py34_0 
        pip:             7.1.2-py34_0 
        python-dateutil: 2.4.2-py34_0 
        pytz:            2015.4-py34_0
        setuptools:      18.1-py34_0  
        six:             1.9.0-py34_0 
        wheel:           0.24.0-py34_0

    Proceed ([y]/n)? y

    Fetching packages ...
    jpeg-8d-0.tar. 100% |################################| Time: 0:00:03 234.07 kB/s
    libpng-1.6.17- 100% |################################| Time: 0:00:00 239.82 kB/s
    freetype-2.5.2 100% |################################| Time: 0:00:13 175.04 kB/s
    libtiff-4.0.2- 100% |################################| Time: 0:00:03 232.50 kB/s
    pillow-2.9.0-p 100% |################################| Time: 0:00:03 220.45 kB/s
    pytz-2015.4-py 100% |################################| Time: 0:00:00 268.37 kB/s
    setuptools-18. 100% |################################| Time: 0:00:01 252.48 kB/s
    six-1.9.0-py34 100% |################################| Time: 0:00:00 396.79 kB/s
    wheel-0.24.0-p 100% |################################| Time: 0:00:00 271.39 kB/s
    clyent-0.4.0-p 100% |################################| Time: 0:00:00 323.04 kB/s
    pip-7.1.2-py34 100% |################################| Time: 0:00:06 260.45 kB/s
    python-dateuti 100% |################################| Time: 0:00:00 258.15 kB/s
    anaconda-clien 100% |################################| Time: 0:00:00 284.63 kB/s
    Extracting packages ...
    [      COMPLETE      ]|###################################################| 100%
    Linking packages ...
    [      COMPLETE      ]|###################################################| 100%
    raja@piplus:~ $ conda create -n condaVEnv00 python=3
    Fetching package metadata: ....
    Solving package specifications: ...........
    Package plan for installation in environment /home/raja/miniconda3/envs/condaVEnv00:

    The following NEW packages will be INSTALLED:

        openssl:    1.0.1k-1     
        pip:        7.1.2-py34_0 
        python:     3.4.3-1      
        setuptools: 18.1-py34_0  
        sqlite:     3.8.4.1-1    
        wheel:      0.24.0-py34_0
        xz:         5.0.5-0      
        zlib:       1.2.8-0      

    Proceed ([y]/n)? y

    Linking packages ...
    [      COMPLETE      ]|###################################################| 100%
    #
    # To activate this environment, use:
    # $ source activate condaVEnv00
    #
    # To deactivate this environment, use:
    # $ source deactivate
    #
    raja@piplus:~ $ conda config --add channels rpi
    raja@piplus:~ $ conda install numpy
    Fetching package metadata: ......
    Solving package specifications: ..
    Error: Unsatisfiable package specifications.
    Generating hint: 
    [      COMPLETE      ]|###################################################| 100%


    Hint: the following packages conflict with each other:
      - numpy
      - python 3.4*

    Use 'conda info numpy' etc. to see the dependencies for each package.
    raja@piplus:~ $

     

    conda install jupyter

    더보기

    conda info jupyter
    Fetching package metadata: ......

    jupyter 1.0.0 py36h224aed1_0
    ----------------------------
    file name   : jupyter-1.0.0-py36h224aed1_0.tar.bz2
    name        : jupyter
    version     : 1.0.0
    build number: 0
    build string: py36h224aed1_0
    channel     : rpi
    size        : 4 KB
    arch        : armv7l
    binstar     : {'package_id': '59d51193656fd81193fd3284', 'owner_id': '5848a1daf838f90fe7b7e9c2', 'channel': 'main'}
    has_prefix  : False
    license     : BSD 3-Clause
    machine     : armv7l
    md5         : d9543c8720e1b22e80a6a8af3e2d3ff4
    operatingsystem: linux
    platform    : linux
    subdir      : linux-armv7l
    target-triplet: armv7l-any-linux
    timestamp   : 1507136480334
    installed environments:
    dependencies:
        ipykernel
        ipywidgets
        jupyter_console
        nbconvert
        notebook
        python >=3.6,<3.7.0a0

    jupyter 1.0.0 py35h8282682_0
    ----------------------------
    file name   : jupyter-1.0.0-py35h8282682_0.tar.bz2
    name        : jupyter
    version     : 1.0.0
    build number: 0
    build string: py35h8282682_0
    channel     : rpi
    size        : 4 KB
    arch        : armv7l
    binstar     : {'package_id': '59d51193656fd81193fd3284', 'owner_id': '5848a1daf838f90fe7b7e9c2', 'channel': 'main'}
    has_prefix  : False
    license     : BSD 3-Clause
    machine     : armv7l
    md5         : 06c6c8ff8971a1608217587adb949b1a
    operatingsystem: linux
    platform    : linux
    subdir      : linux-armv7l
    target-triplet: armv7l-any-linux
    timestamp   : 1507137170063
    installed environments:
    dependencies:
        ipykernel
        ipywidgets
        jupyter_console
        nbconvert
        notebook
        python >=3.5,<3.6.0a0

    jupyter 1.0.0 py27h875d005_0
    ----------------------------
    file name   : jupyter-1.0.0-py27h875d005_0.tar.bz2
    name        : jupyter
    version     : 1.0.0
    build number: 0
    build string: py27h875d005_0
    channel     : rpi
    size        : 4 KB
    arch        : armv7l
    binstar     : {'package_id': '59d51193656fd81193fd3284', 'owner_id': '5848a1daf838f90fe7b7e9c2', 'channel': 'main'}
    has_prefix  : False
    license     : BSD 3-Clause
    machine     : armv7l
    md5         : 64c8267ee50d3d05fb50f6a43c40ec1e
    operatingsystem: linux
    platform    : linux
    subdir      : linux-armv7l
    target-triplet: armv7l-any-linux
    timestamp   : 1507134993770
    installed environments:
    dependencies:
        ipykernel
        ipywidgets
        jupyter_console
        nbconvert
        notebook
        python >=2.7,<2.8.0a0

     

    주피터 설치

    sudo apt-get update && sudo apt-get upgrade

    sudo apt-get install python3-matplotlib python3-scipy python3-pip

    sudo pip3 install --upgrade pip

    sudo reboot

     

    sudo pip3 install jupyter

     

    실행

    jupyter-notebook

     

     

    댓글

© 2018 T-Story. All right reserved.