看板 Python 關於我們 聯絡資訊
請教一下 我vscode視窗左下角是寫 Python 3.9.5 64-bit 而我在vscode裡的terminal zsh 打 python -V 是顯示 2.7.16 請問這兩個版本為何會不同 有影響嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.102.171.42 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1620207327.A.045.html
cuteSquirrel: 系統PATH 和 虛擬環境的版本不同 05/05 17:47
cuteSquirrel: 表示已經安裝兩個以上不同版本的python 05/05 17:47
chin2049: 請教樓上 terminal裡面是虛擬環境嗎? 我有點搞不懂我現 05/05 17:52
chin2049: 在在哪裡開發 可以指點一下嗎 05/05 17:53
OrzOGC: linux下嗎? python 是python2,python3才是python3 05/05 18:05
cuteSquirrel: 參考 https://bit.ly/3h3nu6K 05/05 18:05
chin2049: 我用macOS 05/05 18:11
chin2049: 好C大 我看一下 05/05 18:37
bjchiou: 試試 python3 -V 05/05 19:10
s8321414: Linux下的python不一定是python2啊,有些distro已經指 05/06 08:20
s8321414: 去python3了 05/06 08:20
Hsins: Arch 很早 python 指到 python3 了 05/06 08:29