Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vscode extensions 在VSC集成终端中无法识别Python 环境数据 VS代码版本:1.47.3 扩展版本(在扩展侧栏下提供):XXX 操作系统和版本:Windows Server 2019 Python版本(和发行版,如适用,如Anaconda):Python 3.7.8和Python 3.8.4(从Python.org下载) 使用的虚拟环境类型(N/A | venv | virtualenv | conda |…):NA 相关/受影响的Python包及其版本: 相关/受影响的Python相关VS代码扩展及其版本:Python 2020.7.96456和Shell launcher 0.4.1 python.languageServer设置的值:无 预期行为_Vscode Extensions_Vscode Python - Fatal编程技术网

Vscode extensions 在VSC集成终端中无法识别Python 环境数据 VS代码版本:1.47.3 扩展版本(在扩展侧栏下提供):XXX 操作系统和版本:Windows Server 2019 Python版本(和发行版,如适用,如Anaconda):Python 3.7.8和Python 3.8.4(从Python.org下载) 使用的虚拟环境类型(N/A | venv | virtualenv | conda |…):NA 相关/受影响的Python包及其版本: 相关/受影响的Python相关VS代码扩展及其版本:Python 2020.7.96456和Shell launcher 0.4.1 python.languageServer设置的值:无 预期行为

Vscode extensions 在VSC集成终端中无法识别Python 环境数据 VS代码版本:1.47.3 扩展版本(在扩展侧栏下提供):XXX 操作系统和版本:Windows Server 2019 Python版本(和发行版,如适用,如Anaconda):Python 3.7.8和Python 3.8.4(从Python.org下载) 使用的虚拟环境类型(N/A | venv | virtualenv | conda |…):NA 相关/受影响的Python包及其版本: 相关/受影响的Python相关VS代码扩展及其版本:Python 2020.7.96456和Shell launcher 0.4.1 python.languageServer设置的值:无 预期行为,vscode-extensions,vscode-python,Vscode Extensions,Vscode Python,当我选择Python解释器版本时,我希望在VSC集成终端中获得所选的版本 实际行为 在集成终端中键入Python时,无法识别该命令。 在我的用户设置中,我正在设置PATH环境变量(我在这里删除了python目录的路径)。另外,我将自己排除在A/B pythonPath测试之外 复制步骤: 日志 Python输出通道的输出 这里有一个解释: 这里不是报告产品问题的地方。集成终端与您打开的另一个终端没有什么不同,因此它根据自己的逻辑解析Python路径也就不足为奇了。我只是想知道是否有人也有同样

当我选择Python解释器版本时,我希望在VSC集成终端中获得所选的版本

实际行为 在集成终端中键入Python时,无法识别该命令。 在我的用户设置中,我正在设置PATH环境变量(我在这里删除了python目录的路径)。另外,我将自己排除在A/B pythonPath测试之外

复制步骤:

日志 Python输出通道的输出
这里有一个解释:

这里不是报告产品问题的地方。集成终端与您打开的另一个终端没有什么不同,因此它根据自己的逻辑解析Python路径也就不足为奇了。我只是想知道是否有人也有同样的问题。通常,集成终端会将所选的Python interperter添加到路径中,以便识别它。干杯
> conda --version
> pyenv root
> python3.7 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.7 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.6 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -2 c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~\anaconda3\Scripts\conda.exe info --json
Starting Pylance language server.
Python interpreter path: ~\AppData\Local\Programs\Python\Python38\python.exe
Error 2020-08-06 14:59:13: Attempted to download with skipDownload true.
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
Error 2020-08-06 14:59:16: Detection of Python Interpreter for Command py and args -2 failed as file Python 2 not found!

 -3.8-64
 -3.7-64 does not exist
Error 2020-08-06 14:59:16: Detection of Python Interpreter for Command py and args -3.6 failed as file Python 3.6 not found!

 -3.8-64
 -3.7-64 does not exist
> ~\anaconda3\Scripts\conda.exe info --json
> ~\anaconda3\Scripts\conda.exe env list
> ~\AppData\Local\Programs\Python\Python37\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py pip --version
Python interpreter path: ~\AppData\Local\Programs\Python\Python37\python.exe
> ~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\el.mehdi.el.aouni\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\pyvsc-run-isolated.py pip --version
Editor support is inactive since language server is set to None.
Python interpreter path: ~\AppData\Local\Programs\Python\Python38\python.exe