LoginSignup
12
14

More than 5 years have passed since last update.

pip, easy_install でのコマンドインストール先

Posted at

Python 製のツールを入れるときに、pip install するのが一般的ですが、この時のコマンドインストール先が、環境によって /usr/bin だったり /usr/local/bin だったりするようです。

  • Amazon Linux 2014.09 では /usr/bin にインストールされました
  • Amazon Linux 2015.03, 2015.09 では /usr/local/bin にインストールされました

/usr/bin にインストールするようにしたい場合は、pip コマンドのオプションで --install-option="--install-scripts=/usr/bin" を指定すれば大丈夫です。

easy_install を使っている場合には、--script-dir=/usr/bin となります。

参考:

12
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
14