繁体   English   中英

VScode 不会让我 select cygwin python3 解释器

[英]VScode wont let me select cygwin python3 interpreter

When selecting a python interpreter in VScode I navigate to C:\cgywin64\python3.8.exe and VScode allows me to select this file, but after choosing it VScode continues to tell me I need to select a Python interpreter. 但是,选择 C:\cygwin\python2.7.exe 确实有效。

我相信 VSCode 是最新的(不完全确定如何检查)。

python3 --version
Python 3.8.3

python --version
Python 2.7.18

有人有类似的问题吗? 谢谢!

尝试在cmd window中运行python3查看是否可以正常使用,如果可以,可以尝试以下方法:

  1. 检查 python 环境变量,参考:环境变量

  2. 检查VSCode中的python路径设置,参考: pythonPath

  3. 尝试创建一个虚拟环境并检查您是否可以成功使用python3。 参考: 虚拟环境

如果还是不行,提供更多相关的设置信息会更好的解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM