연구실 서버에 설치된 TensorFlow Version을 확인하려고 방법을 검색해보니 pip show를 이용해서 볼 수 있었다. Reference Guide의 내용 번역 및 예제를 추가해서 정리해둔다.

연구실의 TensorFlow Version은 확인 결과 0.7.1이었다. 최신 Version은 0.8

사용법

pip show [options] <package> ...

설명

한 개 또는 그 이상 설치된 패키지들의 정보를 보여준다.

옵션

-f, --files

각 패키지에 대해 설치된 파일들의 전체 리스트를 보여준다.

예제들

  • 한 개 패키지에 대한 정보 확인
$ pip show sphinx
---
Metadata-Version: 2.0
Name: Sphinx
Version: 1.3.1
Summary: Python documentation generator
Home-page: http://sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: /usr/local/lib/python2.7/dist-packages
Requires: sphinx-rtd-theme, snowballstemmer, six, Pygments, docutils, babel, Jinja2, alabaster
Classifiers:
Development Status :: 5 - Production/Stable
Environment :: Console
...
  • 두 개 이상 패키지에 대한 정보 확인
$ pip show sphinx tensorflow
---
Metadata-Version: 2.0
Name: Sphinx
Version: 1.3.1
Summary: Python documentation generator
Home-page: http://sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: /usr/local/lib/python2.7/dist-packages
Requires: sphinx-rtd-theme, snowballstemmer, six, Pygments, docutils, babel, Jinja2, alabaster
Classifiers:
Development Status :: 5 - Production/Stable
Environment :: Console
...
---
Metadata-Version: 2.0
Name: tensorflow
Version: 0.7.1
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: six, protobuf, wheel, numpy
Classifiers:
Development Status :: 4 - Beta
Intended Audience :: Developers
...
  • 한 개 패키지에 대한 정보 확인(파일 리스트 옵션 On)
$ pip show -f tensorflow
---
Metadata-Version: 2.0
Name: tensorflow
Version: 0.7.1
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: six, protobuf, wheel, numpy
Classifiers:
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: Education
Intended Audience :: Science/Research
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 2.7
Topic :: Scientific/Engineering :: Mathematics
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Libraries
Files:
../../../bin/tensorboard
external/__init__.py
external/__init__.pyc
...

참고 문헌

  1. Find which version of package is installed with pip
  2. Reference Guide > pip show