<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Zsh on Jhooq</title><link>https://jhooq.com/tags/zsh/</link><description>Recent content in Zsh on Jhooq</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Jhooq</copyright><lastBuildDate>Sun, 16 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://jhooq.com/tags/zsh/index.xml" rel="self" type="application/rss+xml"/><item><title>zsh: command not found: ansible - Fix It After pip, venv or pipx Install (Ansible 2.22, zsh 5.9)</title><link>https://jhooq.com/ansible-zsh-command-not-found/</link><pubDate>Sun, 16 Apr 2023 00:00:00 +0000</pubDate><guid>https://jhooq.com/ansible-zsh-command-not-found/</guid><description>
&lt;h2 id="tldr"&gt;TL;DR&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; &lt;code&gt;zsh: command not found: ansible&lt;/code&gt; (exit status 127) means zsh searched every folder in &lt;code&gt;$PATH&lt;/code&gt; and found no executable named &lt;code&gt;ansible&lt;/code&gt;. The package is usually installed fine; its scripts sit in a folder zsh does not look in.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Installed in a &lt;strong&gt;venv&lt;/strong&gt;: the scripts are in &lt;code&gt;&amp;lt;venv&amp;gt;/bin&lt;/code&gt;. Run &lt;code&gt;source &amp;lt;venv&amp;gt;/bin/activate&lt;/code&gt;, or call the full path.&lt;/li&gt;
&lt;li&gt;Installed with &lt;strong&gt;&lt;code&gt;pip install --user&lt;/code&gt;&lt;/strong&gt;: the scripts are in &lt;code&gt;~/.local/bin&lt;/code&gt; on Linux. Put &lt;code&gt;export PATH=&amp;quot;$HOME/.local/bin:$PATH&amp;quot;&lt;/code&gt; in &lt;code&gt;~/.zshrc&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Installed with &lt;strong&gt;pipx&lt;/strong&gt;: run &lt;code&gt;pipx ensurepath&lt;/code&gt;, open a new shell, and use &lt;code&gt;pipx install --include-deps ansible&lt;/code&gt;, because plain &lt;code&gt;pipx install ansible&lt;/code&gt; exposes only &lt;code&gt;ansible-community&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check where it really is with &lt;code&gt;whence -p ansible&lt;/code&gt; and &lt;code&gt;python3 -m site --user-base&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Not an Ansible install problem at all? Start with the &lt;a href="https://jhooq.com/ansible-installation"&gt;Ansible installation guide for Windows, Ubuntu, CentOS and macOS&lt;/a&gt; instead.&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>