microsoft / microsoft/vscode-python-environments
Visual Studio Code failed to recognize default python interpreter path
- Lingua principale
- TypeScript
- Stelle
- 138
- Fork
- 62
- Merge medio
- 1g 4h
- PR unite (30g)
- 35
Descrizione
I have set the default python interpreter path in the User Settings JSON file but VS Code reported `Could not resolved interpreter path`
I have verified the python interpreter path is correct:
I suspected that was because VS Code detected that I did not setup `pyenv init` in my .zshrc file.
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
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.