2
2

More than 5 years have passed since last update.

pip でインストールしたライブラリの情報を調べる(ディレクトリの場所など)

Last updated at Posted at 2018-05-04
$ pip show <package>

こんなんが出る。

$ pip show slackbot
Name: slackbot
Version: 0.5.1
Summary: A simple chat bot for Slack
Home-page: http://github.com/lins05/slackbot
Author: Shuai Lin
Author-email: linshuai2012@gmail.com
License: MIT
Location: /usr/bin/.pyenv/versions/3.6.5/lib/python3.6/site-packages
Requires: websocket-client, slacker, six, requests
Required-by:

-f で詳細表示。

$ pip show <package> -f

パッケージを構成する全てのモジュールが表示される

$ pip show slackbot -f
Name: slackbot
Version: 0.5.1
Summary: A simple chat bot for Slack
Home-page: http://github.com/lins05/slackbot
Author: Shuai Lin
Author-email: linshuai2012@gmail.com
License: MIT
Location: /usr/bin/.pyenv/versions/3.6.5/lib/python3.6/site-packages
Requires: slacker, websocket-client, six, requests
Required-by:
Files:
  slackbot-0.5.1.dist-info/DESCRIPTION.rst
  slackbot-0.5.1.dist-info/INSTALLER
  slackbot-0.5.1.dist-info/METADATA
  slackbot-0.5.1.dist-info/RECORD
  slackbot-0.5.1.dist-info/WHEEL
  slackbot-0.5.1.dist-info/metadata.json
  slackbot-0.5.1.dist-info/top_level.txt
  slackbot/__init__.py
  slackbot/__pycache__/__init__.cpython-36.pyc
  slackbot/__pycache__/bot.cpython-36.pyc
  slackbot/__pycache__/dispatcher.cpython-36.pyc
  slackbot/__pycache__/manager.cpython-36.pyc
  slackbot/__pycache__/settings.cpython-36.pyc
  slackbot/__pycache__/slackclient.cpython-36.pyc
  slackbot/__pycache__/utils.cpython-36.pyc
  slackbot/bot.py
  slackbot/dispatcher.py
  slackbot/manager.py
  slackbot/plugins/__init__.py
  slackbot/plugins/__pycache__/__init__.cpython-36.pyc
  slackbot/plugins/__pycache__/hello.cpython-36.pyc
  slackbot/plugins/__pycache__/upload.cpython-36.pyc
  slackbot/plugins/hello.py
  slackbot/plugins/upload.py
  slackbot/settings.py
  slackbot/slackclient.py
  slackbot/utils.py

なお、インストールされているパッケージ一覧は

$ pip freeze
2
2
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
2
2