{"id":16780938,"url":"https://github.com/piyoki/archiconda3","last_synced_at":"2025-03-22T00:31:22.721Z","repository":{"id":39650301,"uuid":"252358514","full_name":"piyoki/archiconda3","owner":"piyoki","description":"Light-weight Anaconda environment for ARM64 devices.","archived":false,"fork":false,"pushed_at":"2022-05-29T15:01:44.000Z","size":43,"stargazers_count":36,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T07:36:26.514Z","etag":null,"topics":["anaconda","archiconda","conda","jupyter","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piyoki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-02T04:53:05.000Z","updated_at":"2024-09-20T10:40:42.000Z","dependencies_parsed_at":"2022-08-28T08:01:41.692Z","dependency_job_id":null,"html_url":"https://github.com/piyoki/archiconda3","commit_stats":null,"previous_names":["miooochi/archiconda3","piyoki/archiconda3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyoki%2Farchiconda3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyoki%2Farchiconda3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyoki%2Farchiconda3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyoki%2Farchiconda3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piyoki","download_url":"https://codeload.github.com/piyoki/archiconda3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820696,"owners_count":16886223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anaconda","archiconda","conda","jupyter","virtualenv"],"created_at":"2024-10-13T07:36:20.285Z","updated_at":"2024-10-28T11:19:57.353Z","avatar_url":"https://github.com/piyoki.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Archiconda3\n\n## Intro\n\n`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\n\n## Setup\n\nSince 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:\n\n#### Download the installation script and run it\n\n```bash\n$ wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh\n$ sudo sh Archiconda3-0.2.3-Linux-aarch64.sh\n```\n\n#### Export the path where Archiconda is installed, replace \u003cPATH\\TO\\ARCHICONDA3\u003e to wherever it is installed\n\n```bash\n$ export PATH=\u003cPATH\\TO\\ARCHICONDA3\u003e/bin:$PATH\n# ig:  export PATH=~/archiconda3/bin:$PATH\n```\n\n#### Check the version, if Conda is successfully installed, you will see the version info on the terminal.\n\n```bash\n$ conda -V\n```\n\n### To update to the latest version\n\n```bash\n$ conda update conda\n$ conda -V\n```\n\n### To prevent Conda from activating the base environment by default\n\n```bash\n$ conda config --set auto_activate_base false\n$ export \"PATH=/bin:/usr/bin:$PATH\" \u003e\u003e ~/.bashrc\n$ source ~/.bashrc\n$ which python3\n```\n\n## How To Use\n\n### Create/Delete an environment\n\n#### To create an environment\n\n```bash\n$ conda create --name envname (replace envname in your preference)\n```\n\n#### To create an environment with a specific version of Python\n\n```bash\n$ conda create -n envname python=3.6 (replace envname in your preference)\n```\n\n#### To delete an environment\n\n```bash\n$ conda remove -n envname --all (replace envname in your preference)\n```\n\n#### To remove an environment\n\n```bash\n$ conda remove -n envname --all (replace envname in your preference)\n```\n\n### Grant the current user permission\n\n```bash\n$ sudo chown -R username \u003cPATH\\TO\u003e/archiconda\n```\n\n### Activate/Deactivate the environment\n\n#### To activate the environment\n\n```bash\n$ conda activate envname (replace envname in your preference)\n```\n\n#### To deactivate the environment\n\n```bash\n$ conda deactivate\n```\n\n#### To prevent conda from activating the base environment by default\n\n```bash\n$ conda config --set auto_activate_base false\n```\n\n### Packages installation within an environment\n\n#### To install a specific package such as SciPy into an existing environment--\n\n```bash\n$ conda install --name envname pkgname\n```\n\n#### If you do not specify the environment name, which in this example is done by --name myenv, the package installs into the current environment\n\n```bash\n$ conda install pkgname\n```\n\n#### Upgrade pip\n\n```bash\n$ python3 -m pip install --upgrade pip\n```\n\n#### 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)\n\n```bash\n$ which pip3\n```\n\n### Run jupyter notebook/lab inside the conda virtualenv\n\n```bash\n$ sudo chown -R username \u003cPATH\\TO\u003e/archiconda\n$ conda install -c conda-forge jupyterlab\n$ conda install -c anaconda ipykernel\n$ pip3 install --upgrade --force jupyter-console\n```\n\n#### Add an env to jupyter\n\n```bash\n$ ipykernel install --user --name=envname (replace envname in your preference)\n```\n\n#### Remove an env from jupyter\n\n```bash\n$ jupyter kernelspec uninstall envname (replace envname in your preference)\n```\n\n#### List the existing environments\n\n```bash\n$ jupyter kernelspec list\n```\n\nReferences:\n\n- https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084\n- http://echrislynch.com/2019/02/01/adding-an-environment-to-jupyter-notebooks\n\n## Run jupyter lab remotely from your client machine\n\nFor instance, you may open jupter notebook/lab from a windows/mac machine a client.\n\nIn the server machine, type the following commands:\n\n```bash\n$ jupyter lab --generate-config\n$ sudo find / -name jupyter*notebook_config.py #it will display the path of the config file\n$ vi \u003cPATH\\TO\\CONFIG\u003e/jupyter_notebook_config.py\n# you may change the settings in your own preference.*\n```\n\nIn your local client machine type the following commands:\n\n```bash\n$ rm ~/.ssh/known_hosts\n$ ssh -L 8000:localhost:PORT username*@server_ip #check the port by opening jupter lab, the default is 8888 \\\n```\n\nNote: you may change 8000 to whatever # in your preference\n\nfor example: `ssh -L 8000:localhost:9999 kev@10.10.10.65`\n\ntype the adrress with the customized in the web browser localhost:8000\n\n#### first-time login\n\n1. Copy the token from the server terminal\n2. 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.\n\n#### If you want to learn more about anaconda please visit the websites below:\n\n- https://www.jianshu.com/p/11f980d912e3\n- https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html\n- https://blog.csdn.net/weixin_42401701/article/details/80820778\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyoki%2Farchiconda3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyoki%2Farchiconda3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyoki%2Farchiconda3/lists"}