Browse Source

use pip for python packages on Linux

Kyle P Davis 10 năm trước cách đây
mục cha
commit
b34e42be65
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      gimmes/_python_pkg

+ 2 - 1
gimmes/_python_pkg

@@ -10,6 +10,7 @@ if ! has "$PKG"; then
 		easy_install -d "$PYTHONPATH" "$PKG"
 		ln -sfv "$PYTHONPATH/$PKG" "$(brew --prefix)/bin/$PKG"
 	else
-		easy_install "$PKG"
+		has pip  ||  sudo easy_install "$PKG"
+		sudo pip
 	fi
 fi