如何在树莓派上更新到最新的python 3.5.1版本? [英] How do you update to the latest python 3.5.1 version on a raspberry pi?

查看:481
本文介绍了如何在树莓派上更新到最新的python 3.5.1版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天拿到了Raspberry Pi,我已经在尝试用它编写代码了.我有一个计划在其上运行的程序,但它仅与Python版本3.5.0或3.5.1兼容,并且我在互联网上找到的所有内容似乎已经过时,与Python 2有关或与之无关我的问题,因为我还没有看到100%需要Python 3.5并且可以应付3.4(目前已预装)的其他问题. .exe文件在Linux上不起作用.我对Raspberry Pi和Linux都是陌生的,因为我一直都是Windows用户.任何帮助表示赞赏.非常感谢-罗伯特

I got my Raspberry Pi yesterday and I am already trying to code with it. I have a program that I was planning to run on it but it is only compatible with Python versions 3.5.0 or 3.5.1 and everything I find on the internet seems to either be outdated, to do with Python 2 or doesn't relate to my problem as I haven't seen anything else that 100% requires Python 3.5 and can cope with 3.4(currently pre-installed). .exe files don't work on Linux. I am new to the Raspberry Pi and with Linux as I have always been a Windows user. Any help is appreciated. Many Thanks - Robert

推荐答案

cd ~
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
tar -zxvf Python-3.5.1.tgz
cd Python-3.5.1
./configure && make && sudo make install

这篇关于如何在树莓派上更新到最新的python 3.5.1版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆