Light-weight Anaconda environment for ARM64 devices.
Archiconda3
is a distribution of conda
for 64-bit ARM. Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing (data science, machine learning applications, large-scale data processing, predictive analytics, etc.), that aims to simplify package management and deployment. Like Virtualenv
, Anaconda also uses the concept of creating environments so as to isolate different libraries and versions. The goal of this repository is to develop the groundwork needed to compile conda-forge on aarch64
. Once that is laid out, we will be working toward backporting much of this work to conda-forge
Since Archiconda3 is tailored for ARM64
computer (Raspberry Pi, Jetson Devices), the setup process is different from the one with the normal Anaconda. To start off, please follow the setup instructions below:
$ wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
$ sudo sh Archiconda3-0.2.3-Linux-aarch64.sh
$ export PATH=<PATH\TO\ARCHICONDA3>/bin:$PATH
# ig: export PATH=~/archiconda3/bin:$PATH
$ conda -V
$ conda update conda
$ conda -V
$ conda config --set auto_activate_base false
$ export "PATH=/bin:/usr/bin:$PATH" >> ~/.bashrc
$ source ~/.bashrc
$ which python3
$ conda create --name envname (replace envname in your preference)
$ conda create -n envname python=3.6 (replace envname in your preference)
$ conda remove -n envname --all (replace envname in your preference)
$ conda remove -n envname --all (replace envname in your preference)
$ sudo chown -R username <PATH\TO>/archiconda
$ conda activate envname (replace envname in your preference)
$ conda deactivate
$ conda config --set auto_activate_base false
$ conda install --name envname pkgname
$ conda install pkgname
$ python3 -m pip install --upgrade pip
$ which pip3
$ sudo chown -R username <PATH\TO>/archiconda
$ conda install -c conda-forge jupyterlab
$ conda install -c anaconda ipykernel
$ pip3 install --upgrade --force jupyter-console
$ ipykernel install --user --name=envname (replace envname in your preference)
$ jupyter kernelspec uninstall envname (replace envname in your preference)
$ jupyter kernelspec list
References:
For instance, you may open jupter notebook/lab from a windows/mac machine a client.
In the server machine, type the following commands:
$ jupyter lab --generate-config
$ sudo find / -name jupyter*notebook_config.py #it will display the path of the config file
$ vi <PATH\TO\CONFIG>/jupyter_notebook_config.py
# you may change the settings in your own preference.*
In your local client machine type the following commands:
$ rm ~/.ssh/known_hosts
$ ssh -L 8000:localhost:PORT username*@server_ip #check the port by opening jupter lab, the default is 8888 \
Note: you may change 8000 to whatever # in your preference
for example: ssh -L 8000:localhost:9999 [email protected]
type the adrress with the customized in the web browser localhost:8000