Hoshino 0 Posted January 6, 2021 Python 3.5 became obslute. Is there any useful information to update python 3.6 or later. 1. update Debian stretch to buster? or 2. add repository to apt? or 3. compile python 3.6? Share this post Link to post Share on other sites
joesunbrainchild 0 Posted January 7, 2021 Hi Hoshino, 1. Can't upgrade to buster. 2 and 3 It works, you can refer to https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-debian-9/ hope it helps! Share this post Link to post Share on other sites
Hoshino 0 Posted January 8, 2021 I referred to https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-debian-9/ Using apt: E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources > sudo apt -t testing install python3.6 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'python3.6-2to3' for regex 'python3.6' Note, selecting 'libpython3.6-stdlib' for regex 'python3.6' 0 upgraded, 0 newly installed, o to remove and 943 not upgraded. How could I do next? Compiling Python3.6.4: > sudo apt install llvm Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: llvm : Depends: llvm-runtime (=1:3.8-36) but it is not going to be installed Depends: llvm-3.8 (>= 3.8 ~) but it is not going to be installed E: Unable to correct problems, you have held broken packages. How could I do next? Share this post Link to post Share on other sites
joesunbrainchild 0 Posted January 8, 2021 Hi Hoshino, Please skip the llvm tk-dev package Don't apt install. hope it helps! Share this post Link to post Share on other sites
Hoshino 0 Posted January 8, 2021 Thank you for your comment. Using apt: The version stretch is former version. After I replaced the word "stable" to "stretch", apt was worked well. But python3.9 was installed which is not for machine learning. So, I flushing image again. Compiling Python 3.6 or later: In the rknn-toolkit-1.3.2 python 3.7 might be supported. I will continue compiling python. Share this post Link to post Share on other sites
quincybatten 0 Posted February 14, 2023 Check this...Python Update Guide Share this post Link to post Share on other sites