LoginSignup
0
2

More than 3 years have passed since last update.

python モジュールのインポートがVSCODEではできなくて、jupyterlab上で,できたため原因を探る話(2)

Last updated at Posted at 2020-02-20

他の情報を求めてネットを検索していたところ、どうやらpython環境が複数あると
意図しないpythonバージョンをVSCODEが選択して実行してしまうことがあるらしい。

そこで、VSCODE上のpythonを調べてみることに。VSCODEを開いてshift+ctrl+pを押し「select interpreter」で
ぐぐる。すると。

VSCODE.png

どうやらanacondaのpythonと無印のpythonがあり、これまでanacondaベースのpyhonを選択していたようだ。
これを最新の無印のpython3.8.1を選択したら無事にpyquery等のモジュールが利用できるようになった。
原因はやはりVSCODE上の設定にあったようだ。

0
2
1

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
2