Include /usr/local/bin into PATH for "pip install" to be available.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 02 Jun 2021 17:50:31 +0300
changeset 984 54b3a34b8f21
parent 983 710597383618
child 985 5bcbe7b57749
Include /usr/local/bin into PATH for "pip install" to be available.
.env.bash
--- a/.env.bash	Wed Jun 02 13:39:08 2021 +0300
+++ b/.env.bash	Wed Jun 02 17:50:31 2021 +0300
@@ -35,6 +35,10 @@
 if [[ :$PATH: != *:/sbin:* ]]; then
   export PATH=/sbin:$PATH
 fi
+if [[ :$PATH: != *:/usr/local/bin:* ]]; then
+  export PATH=$PATH:/usr/local/bin
+fi
+# ~/.local/bin is default PATH for "pip install --user $PKG".
 if [[ :$PATH: != *:$HOME/.local/bin:* ]]; then
   export PATH=$PATH:$HOME/.local/bin
 fi