berrycondaインストール方法

最初にラズパイへのインストールする際はCPUのモデル名を確認するようにしてください。
/proc/cpuinfoで確認することが可能です。
事前に確認した上でCPUモデルにあったインストールスクリプトを使用してください。

◆berryconda ダウンロード
Linuxコマンドwgetにて、インストールシェルスクリプトをダウンロードする。

$ wget https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv7l.sh
–2019-11-05 19:58:12– https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv7l.sh
github.com (github.com) をDNSに問いあわせています… 52.69.186.44
github.com (github.com)|52.69.186.44|:443 に接続しています… 接続しました。
HTTP による接続要求を送信しました、応答を待っています… 302 Found
場所: https://github-production-release-asset-2e65be.s3.amazonaws.com/75886189/ced18f0c-5fd0-11e7-8a11-282642a50db5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191105T105813Z&X-Amz-Expires=300&X-Amz-Signature=005d210d9f99a5474848453cd55343bd99c0afc592cc8dc3e33396f75e3019ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DBerryconda3-2.0.0-Linux-armv7l.sh&response-content-type=application%2Foctet-stream [続く]
–2019-11-05 19:58:13– https://github-production-release-asset-2e65be.s3.amazonaws.com/75886189/ced18f0c-5fd0-11e7-8a11-282642a50db5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191105T105813Z&X-Amz-Expires=300&X-Amz-Signature=005d210d9f99a5474848453cd55343bd99c0afc592cc8dc3e33396f75e3019ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DBerryconda3-2.0.0-Linux-armv7l.sh&response-content-type=application%2Foctet-stream
github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com) をDNSに問いあわせています… 52.216.102.67
github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.102.67|:443 に接続しています… 接続しました。
HTTP による接続要求を送信しました、応答を待っています… 200 OK
長さ: 39668262 (38M) [application/octet-stream]
`Berryconda3-2.0.0-Linux-armv7l.sh’ に保存中

Berryconda3-2.0.0-L 100%[===================>] 37.83M 1.31MB/s in 23s

2019-11-05 19:58:37 (1.63 MB/s) – `Berryconda3-2.0.0-Linux-armv7l.sh’ へ保存完了 [39668262/39668262]

◆ファイル確認
カレントディレクトリにダウンロードされたか確認
$ ls -ltr
-rw-r–r– 1 pi pi 39668262 7月 3 2017 Berryconda3-2.0.0-Linux-armv7l.sh

◆実行権限付与
シェル実行できるように実行権限を付与
$ chmod +x Berryconda3-2.0.0-Linux-armv7l.sh
$ ls -ltr
-rwxr-xr-x 1 pi pi 39668262 7月 3 2017 Berryconda3-2.0.0-Linux-armv7l.sh

◆スクリプト実行
一般ユーザにて実行
pi@arrows:/var/ssd_disk/usrs/berryconda $ ./Berryconda3-2.0.0-Linux-armv7l.sh

Welcome to Berryconda3 2.0.0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue

Copyright (c) 2016-2017 Jonathan J. Helmus
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the developers nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

※※※※
上記に表示されたライセンスに対して承認可否をする。
問題なければ、Yesとする。
Do you approve the license terms? [yes|no]
>>> yes

※※※※
インストールディレクトリを指定する。
ラスパイは記憶領域が少ないことが多いので、インストールディレクトリを指定する際は 注意してください。
Berryconda3 will now be installed into this location:
/home/pi/berryconda3

  • Press ENTER to confirm the location
  • Press CTRL-C to abort the installation
  • Or specify a different location below

[/home/pi/berryconda3] >>> /var/ssd_disk/opt/bconda

※※※※
PREFIX=/var/ssd_disk/opt/bconda
installing: python-3.6.1-0 …
Python 3.6.1
installing: asn1crypto-0.22.0-py36_0 …
installing: ca-certificates-2017.4.17-0 …
installing: certifi-2017.4.17-py36_0 …
installing: cffi-1.10.0-py36_0 …
installing: chardet-3.0.4-py36_0 …
installing: conda-4.3.22-py36_0 …
installing: conda-env-2.6.0-0 …
installing: cryptography-1.9-py36_0 …
installing: idna-2.5-py36_0 …
installing: libffi-3.2.1-0 …
installing: ncurses-5.9-0 …
installing: openssl-1.0.2l-0 …
installing: packaging-16.8-py36_0 …
installing: pip-9.0.1-py36_0 …
installing: pycosat-0.6.1-py36_0 …
installing: pycparser-2.17-py36_0 …
installing: pyopenssl-16.2.0-py36_0 …
installing: pyparsing-2.2.0-py36_0 …
installing: readline-6.3-0 …
installing: requests-2.18.1-py36_0 …
installing: ruamel_yaml-0.11.14-py36_0 …
installing: setuptools-36.0.1-py36_0 …
installing: six-1.10.0-py36_0 …
installing: sqlite-3.15.0-0 …
installing: tk-8.6.6-0 …
installing: urllib3-1.21.1-py36_0 …
installing: wheel-0.29.0-py36_0 …
installing: xz-5.2.2-0 …
installing: yaml-0.1.6-0 …
installing: zlib-1.2.11-0 …
installation finished.

※※※※
パスを通すかを聞いてくるので、システム的に問題ないのであれば、yesとする。
Do you wish the installer to prepend the Berryconda3 install location
to PATH in your /home/pi/.bashrc ? [yes|no]
>>> yes

Prepending PATH=/var/ssd_disk/opt/bconda/bin to PATH in /home/pi/.bashrc
A backup will be made to: /home/pi/.bashrc-berryconda3.bak

For this change to become active, you have to open a new terminal.

Thank you for installing Berryconda3!

◆ログインし直す
$ su – pi
パスワード:

◆パスの通り状況を確認
$ which python
/var/ssd_disk/opt/bconda/bin/python

◆インタラクティブモードを実行
$ python
Python 3.6.1 | packaged by rpi | (default, Apr 20 2017, 19:35:19)
[GCC 4.9.2] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

コメント

タイトルとURLをコピーしました