擅长:python、mysql、java
<p>不建议安装非发行版的Python版本,也不能指望系统库可以使用它。在</p>
<p>最好的办法是升级到raspbianbuster,因为它是python3.7的标准配置。Buster仍处于测试阶段,要到夏天才能发布,但我已经用了一段时间了,它似乎可以正常工作。我已经成功地升级了精简映像,但不是桌面。在</p>
<p>要升级,请编辑<code>/etc/apt/sources.list</code>,并将<code>stretch</code>替换为<code>buster</code>,然后运行<code>apt update; apt dist-upgrade</code>,等待它完成升级,然后重新启动,<code>python3</code>指向python3.7。在</p>