python drift
install dependency(optional):(本文来自 不才b_d 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/sinat_36184075/article/details/80155392?utm_source=copy )
sudo apt-get dist-upgrade
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
sudo apt-get install libssl-dev openssl
sudo apt-get install libffi-dev -
2.到https://www.python.org/downloads/ 下载对应的版本
download python3:
https://www.python.org/downloads/release/python-370/
3.安装下载的版本
- tar zxvf Python-3.5.2.tgz
- cd Python-3.5.2
- ./configure --prefix=/usr/local/python-3.7.0 #重要,指定python的安装路径,可以自己设置。
- make
- sudo make install
http://blog.51cto.com/4611628/2104576
https://www.zhihu.com/question/21653286
https://blog.csdn.net/qq_18815817/article/details/78874808
posted on 2018-10-08 10:56 zhuguanhao 阅读(182) 评论(0) 编辑 收藏 举报