简体   繁体   English

VSCODE 终端设置配置

[英]VSCODE terminal settings configuration

I am able to run streamlit and python on Anaconda cmd prompt on a separte window, but I can't get the streamlit to run on the VSCODE terminal (python runs fine).我可以在单独的窗口上的 Anaconda cmd 提示符上运行 streamlit 和 python,但我无法在 VSCODE 终端上运行 streamlit(python 运行良好)。 When I type in streamlit in the terminal, it generates a message saying当我在终端中输入streamlit时,它会生成一条消息说

'streamlit' is not recognized as an internal or external command,
operable program or batch file.

I am guessing if I can get my VSCode terminal to run as Anaconda prompt, it should run streamlit without an error, as I am able to run streamlit on a separate Anaconda prompt outside of VSCode.我猜我是否可以让我的 VSCode 终端作为 Anaconda 提示符运行,它应该在没有错误的情况下运行 streamlit,因为我可以在 VSCode 之外的单独的 Anaconda 提示符上运行 streamlit。

I am using Python 3.9.5 64-bit as my interpreter on VSCode and selected Command Prompt for my terminal option.我在 VSCode 上使用 Python 3.9.5 64 位作为我的解释器,并为我的终端选项选择了命令提示符。 I am on Windows environment.我在 Windows 环境中。

I tried selecting Python 3.8.5 ('base') as my interpreter, but it threw the same message.我尝试选择 Python 3.8.5 ('base') 作为我的解释器,但它抛出了相同的信息。 Here is the image of the options I have for interpreter.这是我为解释器提供的选项的图像。

在此处输入图像描述

我必须在使用 3.8.5 ('base': conda) 作为解释器的 VSCode 上创建一个新的命令提示符,才能成功运行 streamlit!

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

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