Logo

dev-resources.site

for different kinds of informations.

How to install the most recent Python in your Synology diskstation

Published at
7/10/2024
Categories
python
anaconda
synology
nas
Author
digfish
Categories
4 categories in total
python
open
anaconda
open
synology
open
nas
open
Author
7 person written this
digfish
open
How to install the most recent Python in your Synology diskstation

Synology, the taiwanese manufacturer of the best NASes in the world, deliveres its devices with a RTD1619B processor, which is based the in ARM-64 architecture (also known as aarch64). I possess a NAS DS223j, after owning a DS212j for 11 years since 2012.
Being a Python-savyy developer, it is unfortunate that Synology does not ship its NASes with Python support built-in, so I have to download its Python distribution using the Package Center for the Diskstation. THe problem is that it is a old version of Python: 3.8, which was shipped more than 4 years ago. I need to use the most recent features of Python, so it is an handicap had to use and old Python.
The alternative to use the most recent Python (at the time of this article is 3.21), you can use the Python shipped by Anaconda, which provides a package manager compiled statically available for download called micromamba, which you can download by following the instructions at mamba.readthedocs.io.
Here are the steps:

  1. In a bash shell, execute curl -Ls https://micro.mamba.pm/api/micromamba/linux-aarch64/latest | tar -xvj bin/micromamba
  2. This will download the micromamba binary into the bin subfolder
  3. Then, execute ./bin/micromamba shell init -s bash. This will add a initialization snippet into the .bashrc file.
  4. Then, do a source ~/.bashrc and micromamba activate && micromamba config append channels conda-forge
  5. The last command will configure micromamba to download the last releases of a python basic development environment which can started by micromamba install
  6. Once there, execute the python executable and voila, you have a very recent compiled python, perhaps no more than 1 month old ! The basic installation also installs pip, so you have all the power of Python on your hands!

References:

Image description

anaconda Article's
27 articles in total
Favicon
Set up Anaconda on Ubuntu 22.04 in Minutes: Simplify Your AI Workflow
Favicon
Anaconda Installation and Virtual Environments: A Comprehensive Guide for Windows, Linux, and macOS
Favicon
How to install the most recent Python in your Synology diskstation
Favicon
How to install Anaconda on Arch Linux
Favicon
Using Miniconda with Conda-Forge to Avoid Anaconda Licensing Issues
Favicon
Complete Guide for Install OpenCV using Anaconda
Favicon
Unlocking Potential: A Guide to Anaconda Enterprise Integration
Favicon
Using Ruby with Conda🐍
Favicon
how to install Miniconda on a Linux Notebook?
Favicon
Anaconda-installation: package for MX-Linux needed - here is a HowTo
Favicon
Miniconda in WSL
Favicon
Cara install anaconda pada linux mint 20 Ulyana
Favicon
A tip for installing Tensorflow on my M1 Macbook Pro with fish shell.
Favicon
Release Conda package from PyPI
Favicon
Add Anaconda Prompt to Windows Terminal - Solution for Space in Executable Path Issue
Favicon
Difference between conda environments and virtual environments in Pyhon
Favicon
Integrate conda in VS code
Favicon
Add anaconda to right-click menu in windows
Favicon
How to Access Jupyter Notebook Remotely on Webbrowser
Favicon
How to update Spyder in Anaconda to 5.x?
Favicon
Epispot on Anaconda
Favicon
Install both Anaconda & Python | Windows
Favicon
Uninstall Anaconda from MacOS Catalina
Favicon
Monitor for any new conda env and add them as Jupyter kernels
Favicon
Using Anaconda On Sublime Text (without installing any package)
Favicon
Install anaconda into Mac OS X Mojave, and add library
Favicon
Setting Anaconda PATH on windows

Featured ones: