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

查看:20
本文介绍了你如何在树莓派上更新到最新的 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天全站免登陆