Closed sathhh closed 1 year ago
Hi,
this doesn't show you installed ansible-core in the first place. Did you upgrade ansible from Ansible 2.9 maybe without uninstalling Ansible 2.9 first? Or maybe there is a problem with your pip / $PATH?
Also this question doesn't really belong in this mailing list, but rather to https://groups.google.com/g/ansible-project/.
Cheers, Felix
On Fri, 13 Jan 2023 07:47:43 -0800 sathhh @.***> wrote:
@.*** ~]# pip3 install ansible-core WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Requirement already satisfied: ansible-core in ./.local/lib/python3.6/site-packages (2.11.7) Requirement already satisfied: jinja2 in ./.local/lib/python3.6/site-packages (from ansible-core) (3.0.3) Requirement already satisfied: PyYAML in ./.local/lib/python3.6/site-packages (from ansible-core) (6.0) Requirement already satisfied: cryptography in ./.local/lib/python3.6/site-packages (from ansible-core) (39.0.0) Requirement already satisfied: packaging in ./.local/lib/python3.6/site-packages (from ansible-core) (21.3) Requirement already satisfied: resolvelib<0.6.0,>=0.5.3 in ./.local/lib/python3.6/site-packages (from ansible-core) (0.5.4) Requirement already satisfied: cffi>=1.12 in ./.local/lib/python3.6/site-packages (from cryptography->ansible-core) (1.15.1) Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.6/site-packages (from MarkupSafe>jinja2->ansible-core) (2.0.1) Requirement already MarkupSafe>satisfied: pyparsing!=3.0.5,>=2.0.2 in MarkupSafe>./.local/lib/python3.6/site-packages (from MarkupSafe>packaging->ansible-core) (3.0.9) Requirement already MarkupSafe>satisfied: pycparser in MarkupSafe>./.local/lib/python3.6/site-packages (from MarkupSafe>cffi>=1.12->cryptography->ansible-core) (2.21)
@.*** ~]# ansible --version -bash: ansible: command not found
Hi
I have emailed to ansible group and I haven't install just - yum install ansible whereas i have tried with python3 -m pip install --user ansible-core==2.11.7
Thank you @felixfontein
I got the solution now.
[root@Ans-D-AS2-354145 ~]# pip3 install ansible-core WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Requirement already satisfied: ansible-core in ./.local/lib/python3.6/site-packages (2.11.7) Requirement already satisfied: jinja2 in ./.local/lib/python3.6/site-packages (from ansible-core) (3.0.3) Requirement already satisfied: PyYAML in ./.local/lib/python3.6/site-packages (from ansible-core) (6.0) Requirement already satisfied: cryptography in ./.local/lib/python3.6/site-packages (from ansible-core) (39.0.0) Requirement already satisfied: packaging in ./.local/lib/python3.6/site-packages (from ansible-core) (21.3) Requirement already satisfied: resolvelib<0.6.0,>=0.5.3 in ./.local/lib/python3.6/site-packages (from ansible-core) (0.5.4) Requirement already satisfied: cffi>=1.12 in ./.local/lib/python3.6/site-packages (from cryptography->ansible-core) (1.15.1) Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.6/site-packages (from jinja2->ansible-core) (2.0.1) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.local/lib/python3.6/site-packages (from packaging->ansible-core) (3.0.9) Requirement already satisfied: pycparser in ./.local/lib/python3.6/site-packages (from cffi>=1.12->cryptography->ansible-core) (2.21)
[root@Ans-D-AS2-354145 ~]# ansible --version -bash: ansible: command not found