Python3 can be easily installed on Synology DSM through Synology Installation Center but
pip installation is skipped. One of the methods to install pip is to bootstrap the pip installer into an existing Python installation. The
ensurepip package is aimed for it. It's available starting from Python version 3.4. As all pip components are a part of Python package, the internet connection is not required to install pip.
The article is based on Synology DSM 6.2.2-24922 Update 4 and Python version is 3.5.1.
bin folder is
lib is located in
1. Validate Python3 installation and version.
2. Install pip
Run pip installation with admin privilege. A running Synology user has to belong to the administrator group. There are 2 options to proceed: (1) run commands as
sudo or (2) switch to root with
sudo python3 -m ensurepip
3. Upgrade pip to the latest version.
sudo python3 -m pip install --upgrade pip
4. Validate pip installation and version.
python3 -m pip -V
5. Install a package, for example, requests.
sudo python3 -m pip install requests