pip については、install時のみしか使わないイメージだったけど、
install 済 Packageのpath確認時にも使えることが判明。
下記がinstall コマンド実行時のものだが、
“python -m pip show <package>”で
Locationにpathが表示される。
1 2 3 4 5 6 7 8 9 10 11 |
C:\Users\XXXXX>python -m pip show numpy Name: numpy Version: 1.18.4 Summary: NumPy is thC:\Users\XXXXXXX>python -m pip show numpy Name: numpy Version: 1.18.4 Summary: NumPy is the fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: d:\users\XXXXX\appdata\local\programs\python\python38\lib\site-packages Requires: Required-by: seaborn, scipy, scikit-learn, pandas, matplotlib C:\Users\XXXXX>python -m pip show jupyter_contrib_nbextensions Name: jupyter-contrib-nbextensions Version: 0.5.1 Summary: A collection of Jupyter nbextensions. Home-page: https://github.com/ipython-contrib/jupyter_contrib_nbextensions.git Author: ipython-contrib and jupyter-contrib developers Author-email: jupytercontrib@gmail.com License: BSD Location: d:\users\XXXXX\appdata\local\programs\python\python38\lib\site-packages Requires: jupyter-core, tornado, jupyter-nbextensions-configurator, pyyaml, traitlets, lxml, jupyter-highlight-selected-word, jupyter-contrib-core, ipython-genutils, notebook, jupyter-latex-envs, nbconvert Required-by: fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: d:\users\XXXXX\appdata\local\programs\python\python38\lib\site-packages Requires: Required-by: seaborn, scipy, scikit-learn, pandas, matplotlib |