Re: [ansible-project] pip3 and python

13 views
Skip to first unread message

Nico Kadel-Garcia

unread,
Jul 3, 2023, 7:30:39 PM7/3/23
to ansible...@googlegroups.com
ansible-core 2.13 is enough for casual use. If you really feel the
need up update, delete that copy owned by the root user.

sudo -i
pip3 uninstall ansible-core

Then install a more recent python, if it's available. On RHEL 8 or 9,
simply doing this will pull in a recent ansible-core and the updated
python as well.

sudo -i
dnf install ansible-core

Kosala Atapattu

unread,
Jul 4, 2023, 1:26:09 AM7/4/23
to ansible...@googlegroups.com
did you install ansible using the same python version?

Like
# python3 -m pip install ansible

cheers,
Kosala




On Tue, Jul 4, 2023 at 3:13 AM dbs34 <derekbel...@gmail.com> wrote:
Hello!

Shouln't I see my pip pointing to the same python version as what ansibile is reporting, python3.9?  Or why is pip9.0.3 pointing to python3.6 and not 3.9?  

[root@ho-lx-ansible01 dnf]# python3 -m pip -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

[root@ho-lx-ansible01 dnf]# ansible --version
ansible [core 2.13.3]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.16 (main, Apr  1 2023, 04:44:33) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18.0.1)]
  jinja version = 3.1.2
  libyaml = True

If so, how do I correct this?  thank you!

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/55b198c0-1487-409f-8b28-d02086d91d2an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages