両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン |
python:mamba [2024/03/29 07:07] – [Linux] ともやん | python:mamba [2024/04/22 08:27] – [Linux] ともやん |
---|
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269"><u style="text-decoration-style:single">exec</u></span> <span style="color:#26A269">$SHELL</span> <span style="color:#A347BA">-l</span> | <span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269"><u style="text-decoration-style:single">exec</u></span> <span style="color:#26A269">$SHELL</span> <span style="color:#A347BA">-l</span> |
| </pre></html></WRAP> |
| </WRAP> |
| |
| ==== DietPi (armv6l) ==== |
| 公式: [[git>jjhelmus/berryconda|jjhelmus/berryconda: Conda based Python distribution for the Raspberry Pi]] [[gtr>https://github.com/jjhelmus/berryconda|翻訳]]\\ |
| |
| Berrycondaのダウンロードと実行...🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">curl</font><font color="#FF9999"> </font><font color="#A347BA">-LO</font><font color="#FF9999"> https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv6l.sh</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| % Total % Received % Xferd Average Speed Time Time Time Current |
| Dload Upload Total Spent Left Speed |
| 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 |
| 100 37.8M 100 37.8M 0 0 350k 0 0:01:50 0:01:50 --:--:-- 381k |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">chmod</font> +x <u style="text-decoration-style:single">Berryconda3-2.0.0-Linux-armv6l.sh</u> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">./Berryconda3-2.0.0-Linux-armv6l.sh</font> |
| </pre></html></WRAP> |
| <WRAP color_result_long><html><pre> |
| |
| 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. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Do you approve the license terms? [yes|no] |
| [no] >>> yes |
| |
| Berryconda3 will now be installed into this location: |
| /home/dietpi/berryconda3 |
| |
| - Press ENTER to confirm the location |
| - Press CTRL-C to abort the installation |
| - Or specify a different location below |
| |
| [/home/dietpi/berryconda3] >>> |
| PREFIX=/home/dietpi/berryconda3 |
| 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. |
| Do you wish the installer to prepend the Berryconda3 install location |
| to PATH in your /home/dietpi/.bashrc ? [yes|no] |
| [no] >>> yes |
| |
| Prepending PATH=/home/dietpi/berryconda3/bin to PATH in /home/dietpi/.bashrc |
| A backup will be made to: /home/dietpi/.bashrc-berryconda3.bak |
| |
| |
| For this change to become active, you have to open a new terminal. |
| |
| Thank you for installing Berryconda3! |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">exec</u></font><font color="#999999"> </font><font color="#26A269">$SHELL</font><font color="#999999"> </font><font color="#A347BA">-l</font> |
| </pre></html></WRAP> |
| </WRAP> |
| |
| Z Shell の場合...🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">nano</font> <font color="#999999"><u style="text-decoration-style:single">~/.zshrc</u></font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <font color="#767676"># added by Berryconda3 installer</font> |
| <font color="#FF5F5F">export</font><font color="#FFFFFF"> PATH</font><font color="#FF5F5F">=</font><font color="#FFFFFF">"</font><font color="#D7D787">/home/dietpi/berryconda3/bin:</font><font color="#FFFFFF">$PATH"</font> |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">.</font><font color="#999999"> </font><font color="#999999"><u style="text-decoration-style:single">~/.zshrc</u></font> |
| <font color="#AFFF00"><b>$</b></font> <font color="#26A269">conda</font> <font color="#A347BA">-V</font> |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
| conda 4.3.22 |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
| |
===== 使い方 ===== | ===== 使い方 ===== |
| <WRAP round tip 90%> |
| |
| manba はシェルの関数で定義されていて which で存在場所を知ることができないので以下のように調べられる🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">type</font><font color="#999999"> mamba</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| mamba is a shell function from /home/tomoyan/miniforge3/etc/profile.d/mamba.sh |
| </pre></html></WRAP> |
| |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#2AA1B3"><b>declare</b></font><font color="#999999"> </font><font color="#A347BA">-f</font><font color="#999999"> mamba </font><font color="#12488B"><b>|</b></font><font color="#999999"> </font><font color="#26A269">bat</font><font color="#999999"> </font><font color="#A347BA">-n</font><font color="#999999"> </font><font color="#A347BA">-l</font><font color="#999999"> bash</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre class=Bat> |
| <font color="#444444"> 1</font> <font color="#A6E22E">mamba</font><font color="#FFFFFF"> () {</font> |
| <font color="#444444"> 2</font> <font color="#FFFFFF"> </font><font color="#BE84FF">\l</font><font color="#FFFFFF">ocal cmd="$</font><font color="#E6DB74">{</font><font color="#FFFFFF">1</font><font color="#F92672">-</font><font color="#E6DB74">__missing__}</font><font color="#FFFFFF">"</font> |
| <font color="#444444"> 3</font> <font color="#FFFFFF"> </font><font color="#F92672">case</font><font color="#FFFFFF"> "$cmd" </font><font color="#F92672">in</font> |
| <font color="#444444"> 4</font> <font color="#FFFFFF"> </font><font color="#F92672">(</font><font color="#FFFFFF">activate </font><font color="#F92672">|</font><font color="#FFFFFF"> deactivate</font><font color="#F92672">)</font><font color="#FFFFFF"> __conda_activate "$@" ;;</font> |
| <font color="#444444"> 5</font> <font color="#FFFFFF"> </font><font color="#F92672">(</font><font color="#FFFFFF">install </font><font color="#F92672">|</font><font color="#FFFFFF"> update </font><font color="#F92672">|</font><font color="#FFFFFF"> upgrade </font><font color="#F92672">|</font><font color="#FFFFFF"> remove </font><font color="#F92672">|</font><font color="#FFFFFF"> uninstall</font><font color="#F92672">)</font><font color="#FFFFFF"> __mamba_exe "$@" </font><font color="#F92672">||</font><font color="#FFFFFF"> </font><font color="#BE84FF">\r</font><font color="#FFFFFF">eturn</font> |
| <font color="#444444"> 6</font> <font color="#FFFFFF"> __conda_reactivate ;;</font> |
| <font color="#444444"> 7</font> <font color="#FFFFFF"> </font><font color="#F92672">(*)</font><font color="#FFFFFF"> __mamba_exe "$@" ;;</font> |
| <font color="#444444"> 8</font> <font color="#FFFFFF"> </font><font color="#F92672">esac</font> |
| <font color="#444444"> 9</font> <font color="#FFFFFF">}</font> |
| </pre></html></WRAP> |
| </WRAP> |
| |
| </WRAP> |
| |
==== ヘルプ [-h,--help] ==== | ==== ヘルプ [-h,--help] ==== |