モジュールも__file__
属性があります。当モジュールの__init__.py
ファイルの場所を指します。
それを調べること。
>>> import sklearn
>>> sklearn.__file__
'/Users/ユーザー名/.pyenv/versions/miniconda3-3.8-4.10.1/lib/python3.8/site-packages/sklearn/__init__.py'
Go to list of users who liked
モジュールも__file__
属性があります。当モジュールの__init__.py
ファイルの場所を指します。
それを調べること。
>>> import sklearn
>>> sklearn.__file__
'/Users/ユーザー名/.pyenv/versions/miniconda3-3.8-4.10.1/lib/python3.8/site-packages/sklearn/__init__.py'
Register as a new user and use Qiita more conveniently
Go to list of users who liked