[英]Python install in Bash but not in windows cmd
I am new to python and programming languages.我是 python 和编程语言的新手。 I downloaded the bash terminal to windows and I see that python already installs:我将 bash 终端下载到 windows 并且我看到 python 已经安装:
I try to run python in the cmd for windows and it does not work, it makes the same in Visual Studio Code我尝试在 windows 的 cmd 中运行 python 并且它不起作用,它在 Visual Studio Code 中也是如此
What do I need to do so I can run python in Visual Studio Code, I do not want to reinstall python in windows because I think it will create duplicates我需要做什么才能在 Visual Studio Code 中运行 python,我不想在 windows 中重新安装 python 因为我认为它会产生重复
no need to reinstall I'm guessing that you path environment differs to one that you have in bash you have couple of options无需重新安装我猜您的路径环境与 bash 中的路径环境不同,您有几个选项
which python
from bash and run set PATH=%PATH%;{output_of_which_python_in_bash}
从 bash 复制 output which python
并运行set PATH=%PATH%;{output_of_which_python_in_bash}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.