mlsjas.blogg.se

Update python debian
Update python debian







Now you should start seeing a Python 3.9 version installed: $ python3 -versionĪnd you can now install the latest version of Ansible without an issue: $ python3 -m pip install ansible Now, to install Python 3.9, run: $ sudo apt update Then add the following line to the bottom of the file and save it: deb testing non-free contrib main If you're running Debian 10 or the slightly-older version of Raspberry Pi OS based on it, you can still install Python 3.9 using apt, but you'll need to update your 'apt sources' to pull down a newer version of Python.Įdit /etc/apt/sources.list: $ sudo nano /etc/apt/sources.list Unfortunately for those with older OSes that don't have a pre-packaged version of Python available, you will need to either deal with the complexity of pyenv, or build a newer version of Python from source. It's best to upgrade Python so you can install the latest version of Ansible cleanly. That should work, and as long as you don't try upgrading to Ansible 5, you'd have a stable (if no longer supported) version of Ansible running. To do that, run: $ python -m pip install -user ansible=4.9.0 The easiest workaround for now is to install the latest version of Ansible 4, which uses ansible-core 2.11, which is compatible with the version of Python (3.7) that ships with Debian 10 Buster. Switch to Debian 11 "Bullseye" (download the latest version of Pi OS) or another newer OS that has Python 3.8 or later by default.There was recently a fix that makes it so Ansible 5.x won't get installed on these older systems, but who wants to get stuck on old unsupported Ansible versions? Raspberry Pi OS, which was based on Debian 10 ("Buster") until recently, includes Python 3.7, which is too old to satisfy Ansible's installation requirements.

update python debian

And ansible-core 2.12 is included in Ansible 5.0.0, which was recently released. The problem is ansible-core 2.12 has a new hard requirement for Python 3.8 or newer. No matching distribution found for ansible-core=2.12.0 (from ansible)ĮRROR: No matching distribution found for ansible-core=2.12.0 Accompanying it is a debug message like one of the following: $ python3 -m pip install ansible I've started getting a lot of bug reports on my repos to the effect of "Ansible won't install on my Raspberry Pi anymore".









Update python debian