{"id":12703,"date":"2026-11-18T00:39:30","date_gmt":"2026-11-18T05:39:30","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=12703"},"modified":"2026-11-18T00:50:31","modified_gmt":"2026-11-18T05:50:31","slug":"pip-where-in-the-world-are-my-binaries","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=12703","title":{"rendered":"PIP &#8211; Where in the world are my binaries!?!?"},"content":{"rendered":"<p>If I run pip as root (and, yeah, I\u00a0<em>know<\/em> you shouldn&#8217;t do that), I get happy functional binaries in \/usr\/bin. When I do the\u00a0<em>right<\/em> thing, I (of course) cannot write to that bin folder. I cannot find my binaries! Running updatedb and using locate doesn&#8217;t help. Still got no files.<\/p>\n<p>I ended up tracing an operation to find these things. They&#8217;re in my user home directory? And, of course, <span data-subtree=\"aimfl,mfl\">the <!--JHaP3e fc7533ef7073432a83adaca5e185dd96.3--><\/span><code class=\"KDcb0c\" dir=\"ltr\" data-sfc-root=\"ep\" data-epip=\"[&quot;fc7533ef7073432a83adaca5e185dd96.4&quot;,&quot;fc7533ef7073432a83adaca5e185dd96.2&quot;]\" data-complete=\"true\">locate<!--TgQPHd|||[]--><\/code><!--Y0ezWc [&quot;fc7533ef7073432a83adaca5e185dd96.5&quot;,&quot;fc7533ef7073432a83adaca5e185dd96.2&quot;]--> command (and its database via <!--JHaP3e fc7533ef7073432a83adaca5e185dd96.5--><code class=\"KDcb0c\" dir=\"ltr\" data-sfc-root=\"ep\" data-epip=\"[&quot;fc7533ef7073432a83adaca5e185dd96.6&quot;,&quot;fc7533ef7073432a83adaca5e185dd96.2&quot;]\" data-complete=\"true\">updatedb<!--TgQPHd|||[]--><\/code><!--Y0ezWc [&quot;fc7533ef7073432a83adaca5e185dd96.7&quot;,&quot;fc7533ef7073432a83adaca5e185dd96.2&quot;]-->) often excludes user home directories by default due to <!--JHaP3e fc7533ef7073432a83adaca5e185dd96.7-->privacy and security concerns<!--Y0ezWc [&quot;fc7533ef7073432a83adaca5e185dd96.11&quot;,&quot;fc7533ef7073432a83adaca5e185dd96.2&quot;]-->. So it\u00a0<em>looked<\/em> like nothing was getting written to disk during the pip install.<\/p>\n<p>Once I\u00a0<em>found<\/em> the missing binaries in my <a href=\"https:\/\/fedoraproject.org\/wiki\/Changes\/UserPathPrioritization\" target=\"_blank\" rel=\"noopener\">~\/.local\/bin folder<\/a>, I was able to find that this is all well documented:<\/p>\n<p>&#8220;Currently if user is installing their own tools with installers like (pip), they will be installed inside ~\/.local\/bin or ~\/bin but if the same CLI tools are installed at system level the user would not be able to use his own tools because the system one would be picked instead. This happens because .bashrc file adds user PATH to the end instead of the top of PATH list variable.&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>Of course, I go through all this research and learning to actually find the binary &#8230; only to discover that home assistant literally has something hard coded to\u00a0<em>require<\/em> that you use a virtual environment. Not just do a pip install as your application user. I really wish people would explain\u00a0<em>why<\/em> in their documentation. https:\/\/fedoraproject.org\/wiki\/Home_Assistant just says to type these commands. Which is nice if you don&#8217;t know what you are doing. But explaining\u00a0<em>why<\/em> a virtual environment is being used would have saved me a lot of trouble just to bash up against another brick wall. Sigh. On the up side, I learned something new about Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I run pip as root (and, yeah, I\u00a0know you shouldn&#8217;t do that), I get happy functional binaries in \/usr\/bin. When I do the\u00a0right thing, I (of course) cannot write to that bin folder. I cannot find my binaries! Running updatedb and using locate doesn&#8217;t help. Still got no files. I ended up tracing an &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[47,2252,294,752],"class_list":["post-12703","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-fedora","tag-homeassistant","tag-linux","tag-pip"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12703"}],"version-history":[{"count":5,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12703\/revisions"}],"predecessor-version":[{"id":12706,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12703\/revisions\/12706"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}