簡體   English   中英

Python 安裝在 Bash 但不在 windows ZDFFF0A7FA1A55C8C152966C19FDA6

[英]Python install in Bash but not in windows cmd

我是 python 和編程語言的新手。 我將 bash 終端下載到 windows 並且我看到 python 已經安裝:

圖片1

我嘗試在 windows 的 cmd 中運行 python 並且它不起作用,它在 Visual Studio Code 中也是如此圖片2

我需要做什么才能在 Visual Studio Code 中運行 python,我不想在 windows 中重新安裝 python 因為我認為它會產生重復

無需重新安裝我猜您的路徑環境與 bash 中的路徑環境不同,您有幾個選項

  • 你可以 改變vscode默認shell
  • 從 bash 復制 output which python並運行set PATH=%PATH%;{output_of_which_python_in_bash}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM