如何更改代码运行程序的设置使其运行py3

2024-10-03 15:27:56 发布

您现在位置:Python中文网/ 问答频道 /正文

如何为代码运行程序配置python的默认路径?我想用py3而不是py2

与pic1一样,它总是将python的默认路径设置为

HONGXUdeMBP:python hongxuli$ python -u "/Users/hongxuli/Documents/cs related data/python/test.py"

如何将其更改为

HONGXUdeMBP:python hongxuli$ /usr/local/opt/python/bin/python3.7 "/Users/hongxuli/Documents/cs related data/python/test.py"

我更改了setting.json,但仍然不起作用

enter image description here


Tags: pytest路径程序datapy3csusers