microsoft / microsoft/vscode-python-environments

Visual Studio Code failed to recognize default python interpreter path

Abierto
#1,363 21 comentarios 5 reacciones 1 asignado Reclamado por @eleanorjboyd Ver en GitHub
triage-needed
Lenguaje dominante
TypeScript
Estrellas
138
Forks
62
Merge medio
1 d 4 h
PR fusionados (30 d)
35

Descripción

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
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.