# I could not upgrade ansbile from 2.13.13 to 2.15.0

**URL:** <https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388>\
**Category:** Get Help\
**Tags:** ansible-core\
**Created:** [November 15, 2023, 2:06am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388 "2023-11-15T02:06:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanhnguyen](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lanhnguyen](https://forum.ansible.com/u/lanhnguyen)\
**Post date:** [November 15, 2023, 2:07am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/1 "2023-11-15T02:07:00Z")

</div>

I tried to upgrade to ansible 2.15.0 but it show errors as the following.  
`root@DESKTOP-TKEE1CB:/etc/ansible# pip install ansible-core==2.15.0 ERROR: Could not find a version that satisfies the requirement ansible-core==2.15.0 (from versions: 0.0.1a1, 2.11.0b1, 2.11.0b2, 2.11.0b3, 2.11.0b4, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1rc1, 2.11.1, 2.11.2rc1, 2.11.2, 2.11.3rc1, 2.11.3, 2.11.4rc1, 2.11.4, 2.11.5rc1, 2.11.5, 2.11.6rc1, 2.11.6, 2.11.7rc1, 2.11.7, 2.11.8rc1, 2.11.8, 2.11.9rc1, 2.11.9, 2.11.10rc1, 2.11.10, 2.11.11rc1, 2.11.11, 2.11.12rc1, 2.11.12, 2.12.0b1, 2.12.0b2, 2.12.0rc1, 2.12.0, 2.12.1rc1, 2.12.1, 2.12.2rc1, 2.12.2, 2.12.3rc1, 2.12.3, 2.12.4rc1, 2.12.4, 2.12.5rc1, 2.12.5, 2.12.6rc1, 2.12.6, 2.12.7rc1, 2.12.7, 2.12.8rc1, 2.12.8, 2.12.9rc1, 2.12.9, 2.12.10rc1, 2.12.10, 2.13.0b0, 2.13.0b1, 2.13.0rc1, 2.13.0, 2.13.1rc1, 2.13.1, 2.13.2rc1, 2.13.2, 2.13.3rc1, 2.13.3, 2.13.4rc1, 2.13.4, 2.13.5rc1, 2.13.5, 2.13.6rc1, 2.13.6, 2.13.7rc1, 2.13.7, 2.13.8rc1, 2.13.8, 2.13.9rc1, 2.13.9, 2.13.10rc1, 2.13.10, 2.13.11rc1, 2.13.11, 2.13.12rc1, 2.13.12, 2.13.13rc1, 2.13.13) ERROR: No matching distribution found for ansible-core==2.15.0`

the python 3.8.10 is installed already.  
Could you show me the way to update the latest ansible version?

---

<div class="post-metadata">

**Author:** ![jbericat](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jbericat/32/627_2.png) [@jbericat](https://forum.ansible.com/u/jbericat)\
**Post date:** [November 15, 2023, 11:30am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/2 "2023-11-15T11:30:46Z")

</div>

Hello @lanhnguyen

Can you try to update pip itself?

`pip install --upgrade pip`

Also, you may try to skip the pip cache:

`pip install --no-cache-dir ansible-core==2.15.0`

Or you may check your /etc/pip.conf, as suggested [here](https://stackoverflow.com/questions/60814982/how-to-setup-pip-to-download-from-mirror-repository-by-default)

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [November 15, 2023, 3:52pm UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/3 "2023-11-15T15:52:44Z")

</div>

> [@lanhnguyen](#):
>
> the python 3.8.10 is installed already.

I think [2.15.0 requires 3.9](https://pypi.org/project/ansible-core/2.15.0/). So pip seems to tell the truth when it says there’s no matching distribution for Python 3.8.10.

---

<div class="post-metadata">

**Author:** ![jbericat](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jbericat/32/627_2.png) [@jbericat](https://forum.ansible.com/u/jbericat)\
**Post date:** [November 15, 2023, 3:54pm UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/4 "2023-11-15T15:54:08Z")

</div>

good point! I failed to see that 😛

---

<div class="post-metadata">

**Author:** ![lanhnguyen](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lanhnguyen](https://forum.ansible.com/u/lanhnguyen)\
**Post date:** [November 16, 2023, 1:54am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/5 "2023-11-16T01:54:41Z")

</div>

> [@mariolenz](#):
>
> I think [2.15.0 requires 3.9](https://pypi.org/project/ansible-core/2.15.0/). So pip seems to tell the truth when it says there’s no matching distribution for Python 3.8.10.

I tried to install puthon 3.9 but I also can not upgrade ansible core to 2.15.0

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/b/bb1ddeb2d6626470044f5f4c3e42b5429f6a5767.png)

---

<div class="post-metadata">

**Author:** ![lanhnguyen](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lanhnguyen](https://forum.ansible.com/u/lanhnguyen)\
**Post date:** [November 16, 2023, 6:12am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/6 "2023-11-16T06:12:26Z")

</div>

it shows the below when I tried to installed from puthon3. I installed python 3.9 already.

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/8/81cd3295009fea912de96a5dba1cbad84b519c07.png)

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [November 16, 2023, 6:43am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/7 "2023-11-16T06:43:12Z")

</div>

You run `pip3 --version`, but then `pip install ...`. Probably `pip` is for another Python than `pip3`.

---

<div class="post-metadata">

**Author:** ![jbericat](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jbericat/32/627_2.png) [@jbericat](https://forum.ansible.com/u/jbericat)\
**Post date:** [November 16, 2023, 6:44am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/8 "2023-11-16T06:44:33Z")

</div>

Hello again,

Looks like you almost got it… The warning you see on the screenshot is just telling you that it would be better to use a Python Virtual Environment, instead of installing the packages system wide. To create a venv you can proceed as follows:

```bash
python3 -m venv ansible_ve
source ansible_ve/bin/activate

```

Then, try to install the pip again

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [November 16, 2023, 6:45am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/9 "2023-11-16T06:45:11Z")

</div>

This screenshot shows that you already have ansible-core 2.15 installed **locally for user `root`**. So the user `root` should be able to run it, assuming that `/root/.local/bin` is in `$PATH`. Other users on the system won’t be able to use it though.

---

<div class="post-metadata">

**Author:** ![lanhnguyen](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lanhnguyen](https://forum.ansible.com/u/lanhnguyen)\
**Post date:** [November 16, 2023, 7:19am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/10 "2023-11-16T07:19:22Z")

</div>

I could upgrade to ansible-core 2.15.6.  
Thank you so much, everyone.

---

<div class="post-metadata">

**Author:** ![jbericat](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jbericat/32/627_2.png) [@jbericat](https://forum.ansible.com/u/jbericat)\
**Post date:** [November 16, 2023, 7:32am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/11 "2023-11-16T07:32:37Z")

</div>

Happy to read that @lanhnguyen !

Can you tick the solved checkbox for the answer you think helped you most to resolve the issue, please? We’d really appreciate that 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![lanhnguyen](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lanhnguyen](https://forum.ansible.com/u/lanhnguyen)\
**Post date:** [November 16, 2023, 7:40am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/12 "2023-11-16T07:40:09Z")

</div>

I used below command  
python3 -m pip install ansible-core==2.15.6

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 16, 2023, 7:40am UTC](https://forum.ansible.com/t/i-could-not-upgrade-ansbile-from-2-13-13-to-2-15-0/2388/13 "2023-12-16T07:40:38Z")

</div>

Closed on December 16, 2023, 7:40am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
