[英]Can't run a python script on VScode mac
just getting into programming for uni, can't seems to setup VScode for python.刚开始为 uni 编程,似乎无法为 python 设置 VScode。 When running a script I get this message: /bin/sh: python: command not found I read about smth similar all around the internet, I am sure python is installed.
运行脚本时,我收到以下消息: /bin/sh: python: command not found 我在互联网上读到了类似的东西,我确定 python 已安装。 To check, in the terminal I write "type python" and get the message displayed saying: python is an alias for /usr/bin/python3 Just don't know what to do, thank you for your answer:)
要检查,在终端中我写“type python”并显示消息:python is an alias for /usr/bin/python3 只是不知道该怎么做,谢谢你的回答:)
Try python3 --version
in your terminal.在您的终端中尝试
python3 --version
。
or use command python3 hello.py
.或使用命令
python3 hello.py
。 (macOS/Linux) (macOS/Linux)
You can refer to the docs for more details.您可以参考文档以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.