How can I make the “python” command in terminal, run python3 instead of python2?

后端 未结 6 1770
天涯浪人
天涯浪人 2020-12-31 03:53

I\'m just starting to learn Python and did search around a little, so forgive me if this has been asked and answered.

When running scripts through the command line/t

6条回答
  •  执笔经年
    2020-12-31 04:18

    on raspbian linux in the terminal i just run it by typing python3 file.py or just python file.py for python 2

提交回复
热议问题