LoginSignup
0
0

More than 1 year has passed since last update.

【Python】インポートするパッケージのパスを通す

Last updated at Posted at 2022-11-28

importを記述しても対象のパッケージが認識されない場合に、対象パッケージのimport文の前にパス指定を追加する。

sample.py
import sys
sys.path.append( r"<パッケージのパス>" )
import <対象のパッケージ>
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