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 develop the groundwork needed to compile conda-forge on aarch64. Once that is layed 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), ths 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 the path where archiconda is installed, replace <PATH\TO\ARCHICONDA3> to wherever it is installed
$ export PATH=<PATH\TO\ARCHICONDA3>/bin:$PATH
# ig: export PATH=~/archiconda3/bin:$PATH
Check the version, if conda is successfully installed, you will see the version info on the terminal.
$ 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
--If you do not specify the environment name, which in this example is done by --name myenv, the package installs into the current environment--
$ conda install pkgname
$ python -m pip install --upgrade pip
--Check pip version (Note please make sure you check the path of the pip, or the packages installed with pip/pip3 might not be installed in the conda environment)--
$ which 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
Add an env to jupyter
$ ipykernel install --user --name=envname (replace envname in your preference)
Remove an env from jupyter
$ jupyter kernelspec uninstall envname (replace envname in your preference)
List the existing environments
$ jupyter kernelspec list
References*
https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084
http://echrislynch.com/2019/02/01/adding-an-environment-to-jupyter-notebooks/
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
(ig: ssh -L 8000:localhost:9999 [email protected] )
type the adrress with the customized in the web browser localhost:8000
first-time login
Copy the token from the server terminal
Open a web browse from the client, type localhost:PORT (localhost:8000 as default)
then it will promot up a windows to ask you to type in the token, just paste the token, and you should be good to go.
https://www.jianshu.com/p/11f980d912e3
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html
https://blog.csdn.net/weixin_42401701/article/details/80820778