“Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others. Use the conda install command
to install 720+ additional conda packages from the Anaconda repository.” This and further information could be accessed on the official Miniconda website. If some packages are not available via PIP, Miniconda could be a solution.
Prerequisites
- IPKG package manager: IPKG installation tutorial
- Internet connection on the PLCnext Controller
- root access to the PLCnext Controller
Installation
Install the IPKG package Manager
If IPKG is allready installed, this section could be skipped. The installation is also described in this video.
- Sign in at the controller as root. (A description how to add a root-user is described in a manual that could be accessed here.)
- Enter
wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabihf-bootstrap.sh | sh
- Open the file with the path settings:
nano /etc/profile.d/plcnext_app.sh
and add the lineexport PATH=$PATH:/opt/bin:/opt/sbin
.
This saves the path to the installed ipkg manager permanently.
Install bzip
This program is used for compression / decompression and is needed for the installation of the compressed miniconda file.
- Sign in at the controller and change to root:
su -
The ‘-‘ is necessary to keep the path settings from the signed in user. - Install bzip:
ipkg install bzip2
Download and install miniconda
- Change the directory to
cd /usr/local
- Enter:
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo md5sum Miniconda3-latest-Linux-armv7l.sh
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh
- During the installation you have to confirm the license agreement. Details could be found here: Anaconda license.
- It is recommended to change the installation path to
/usr/local/miniconda
- Open the file with the path settings:
nano /etc/profile.d/plcnext_app.sh
and add the lineexport PATH=$PATH:/usr/local/miniconda/bin
This saves the path to miniconda permanently.
Testing and extending Miniconda
- The installation could be testet if you enter
conda
An overview of miniconda should be displayed. - To obtain a wider range of downloadable packages in respect to the processor of the AXC F 2152 add following channel to the conda installation
class="pln">add channels rpi
Leave a Reply
You must be logged in to post a comment.