You can get Python3 from the Synology’s package center, but it comes without pip. But you can easily SSH into your NAS with an admin account and run the following commands:
sudo python3 -m ensurepip --upgrade
sudo python3 -m pip install --upgrade pip
You can check the version with:
python3 -m pip -V
You can install things with:
sudo python3 -m pip install name_of_the_thing
Note that “ensurepip” is a standard Python feature, and also works on other devices. I specifically did this on my Synology NAS, though.
[…] Tips on installing python and packages here: https://jackgruber.github.io/2021-06-27-install-pip-on-synology/ and https://synoguide.com/2023/01/21/install-and-use-python-3-9-in-your-synology/ and https://www.sindastra.de/p/2290/how-to-install-python-pip-on-synology-nas […]
Same error than Amy Ashmore since DSM 7
Hello, I have the same error than Amy Ashmore
Hello,
after:
python3 -m pip -V
i get:
/bin/python3: No module named pip.__main__; ‘pip’ is a package and cannot be directly executed
thanks
Thank you for your howto. I works as root.
WARNING: Running pip as root will break packages and permissions. Y
ou should install packages reliably by using venv:
https://pip.pypa.io/warnings/venv
Any solution for other users?