0
0

pythonでimportしたモジュールのローカル場所を確認する

Last updated at Posted at 2023-08-16

モジュールも__file__属性があります。当モジュールの__init__.pyファイルの場所を指します。

それを調べること。

>>> import sklearn
>>> sklearn.__file__
'/Users/ユーザー名/.pyenv/versions/miniconda3-3.8-4.10.1/lib/python3.8/site-packages/sklearn/__init__.py'
0
0
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
0
0