I switch between CPython and PyPy every so often, and while the former is always present in Python: Select Interpreter...
, the latter never sticks and I have to input the path manually. I'd like to save it as a permanent option globally.
VSCode's documentation says:
The extension automatically looks for interpreters in the following locations, in no particular order:
- Standard install paths such as
/usr/local/bin
,/usr/sbin
,/sbin
,c:\\python36
, etc.- Virtual environments located [...]
- Interpreters created by pyenv, Pipenv, and Poetry.
- Virtual environments located [...]
- Conda environments [...]
- Interpreters installed in a
.direnv
folder for direnv under the workspace folder.
I'm not sure what would constitute a "standard install path" for PyPy (though apparently Inkscape's Python is included?!). I've tried creating a virtual environment under python.venvPath
with --system-site-packages
, but it doesn't seem to be detected, even when others are.
I switch between CPython and PyPy every so often, and while the former is always present in Python: Select Interpreter...
, the latter never sticks and I have to input the path manually. I'd like to save it as a permanent option globally.
VSCode's documentation says:
The extension automatically looks for interpreters in the following locations, in no particular order:
- Standard install paths such as
/usr/local/bin
,/usr/sbin
,/sbin
,c:\\python36
, etc.- Virtual environments located [...]
- Interpreters created by pyenv, Pipenv, and Poetry.
- Virtual environments located [...]
- Conda environments [...]
- Interpreters installed in a
.direnv
folder for direnv under the workspace folder.
I'm not sure what would constitute a "standard install path" for PyPy (though apparently Inkscape's Python is included?!). I've tried creating a virtual environment under python.venvPath
with --system-site-packages
, but it doesn't seem to be detected, even when others are.
1 Answer
Reset to default 1Use settings.json:
"python.defaultInterpreterPath"
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744733604a4590608.html
评论列表(0条)