microsoft / microsoft/vscode-python-environments

Visual Studio Code failed to recognize default python interpreter path

オープン
#1,363 コメント 21 件 リアクション 5 件 担当者 1 名 @eleanorjboyd が担当を希望しています GitHub で見る
triage-needed
主要言語
TypeScript
スター
138
フォーク
62
平均マージ
1日 4時間
マージ済み PR(30日)
35

説明

I have set the default python interpreter path in the User Settings JSON file but VS Code reported `Could not resolved interpreter path`

Image

I have verified the python interpreter path is correct:

Image

I suspected that was because VS Code detected that I did not setup `pyenv init` in my .zshrc file.

Image

I did NOT execute `pyenv init - zsh` in the .zshrc file because it slows down the initialization of zsh. Instead I initialized the pyenv environment in .zshrc as follows:

```
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/shims:$PATH
export PATH=$PYENV_ROOT/plugins/pyenv-virtualenv/shims:$PATH
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。