如何将树莓派桌面的Python IDLE从3.7升级到3.9



enter image description hereenter image description here我以前安装过Python IDLE,它是3.7.3版本。我已经尝试了sudo apt upgrade idlesudo apt install idle,看看它是否会更改为3.9版本。有办法改变这一点吗?如果我无能为力,是否可以在PI桌面上使用python 3.9版本?

我以前也遇到过同样的问题。首先,我改为使用python3,因为树莓默认使用python2,你可以检查这个网站:访问https://learn.sparkfun.com/tutorials/python-programming-tutorial-getting-started-with-the-raspberry-pi/configure-your-pi?fbclid=IwAR1BZqhI3oV55RKaOf0zzDZfQAdf2ZgOZ9XVSZDJHrbTor1ogzxVEf_ztsA

然后你可以更新空闲到python 3.9我建议访问:https://raspberrytips.com/install-latest-python-raspberry-pi/完成你的python升级

最新更新