Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command 'ansible' not found after correct installation with pip3 #67259

Closed
FidelVe opened this issue Feb 9, 2020 · 3 comments
Closed

Command 'ansible' not found after correct installation with pip3 #67259

FidelVe opened this issue Feb 9, 2020 · 3 comments
Labels
affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@FidelVe
Copy link

FidelVe commented Feb 9, 2020

SUMMARY

installed ansible with the following command, without issues.

pip3 install ansible

After the installation process, running ansible --version is showing me the following

Command 'ansible' not found, but can be installed with:

sudo apt install ansible

If I tried running the installation again I get this

Requirement already satisfied: ansible in /home/fidel/.local/lib/python3.7/site-packages (2.9.4)
Requirement already satisfied: jinja2 in /usr/lib/python3/dist-packages (from ansible) (2.10)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from ansible) (2.3)
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from ansible) (3.13)

It looks that the problem is that ansible is being installed in a local folder instead of the global /usr/lib/python3/dist-packages and because of that, the shell cant find the ansible command.

How can I force the installation path into the global folder?

ISSUE TYPE
  • installation errors
OS / ENVIRONMENT

OS: Ubuntu 19.04 x86_64

@ansibot
Copy link
Contributor

ansibot commented Feb 9, 2020

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Feb 9, 2020

@FidelVe: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • ansible version
  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Feb 9, 2020
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Feb 20, 2020
@sivel
Copy link
Member

sivel commented Feb 20, 2020

Our pip installation indicates using pip install --user ansible which will install to ~/.local, but you must add ~/.local/bin to your $PATH env var.

If you have further questions please stop by IRC or the mailing list:

@sivel sivel closed this as completed Feb 20, 2020
@ansible ansible locked and limited conversation to collaborators Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

4 participants