简体   繁体   English

Python 3 IDLE(Shell)但在Raspberry Pi上仅安装了Python 2.7?

[英]Python 3 IDLE (Shell) but only Python 2.7 installed on Raspberry Pi?

i installed Raspbian on my Raspberry Pi and it has Python 3 IDLE to write code. 我在Raspberry Pi上安装了Raspbian,它具有Python 3 IDLE来编写代码。 What confuses me is, that if i execute "python" in the command of my Raspberry Pi, it says the Python version is 2.7? 令我感到困惑的是,如果我在Raspberry Pi的命令中执行“ python”,它说Python版本是2.7? Can someone help? 有人可以帮忙吗?

As long as it won't cause you any issues, you can try running python3 . 只要它不会给您带来任何问题,就可以尝试运行python3 If you have Python 2 and 3 installed, from my experience python usually runs Python 2, so I guess you'll have to be specific. 如果您安装了Python 2和3,根据我的经验, python通常会运行Python 2,所以我想您必须要具体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM