Raspberry pi编译安装python3.6

发布于 2020-01-15  172 次阅读


提醒:本文已经超过 308 天未修改,其中某些信息可能已经过时,请谨慎使用!
你似乎正在查看一篇很久远的文章。
为了你这样的访客,我特地保留了我的历史博文。不要笑话过去的我,用温柔的目光看下去吧。

废话不多说直接搞

1.安装依赖

sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev -y

2.安装SSL依赖

sudo apt-get install libssl-dev -y

3.下载并解压python 3.6

wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
tar xf Python-3.6.6.tar.xz
cd Python-3.6.6 

4.编译安装并更新pip

sudo  ./configure&&sudo make&&sudo make install
sudo python3.6 -m pip install --upgrade pip

全部命令汇总

sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev -y
sudo apt-get install libssl-dev -y
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
tar xf Python-3.6.6.tar.xz 
cd Python-3.6.6
sudo  ./configure&&sudo make&&sudo make install
sudo python3.6 -m pip install --upgrade pip

版权声明:转载时请以超链接形式标明文章原始出处和作者信息,来源孤影墨香
本文链接: https://www.gymxbl.com/2160.html
访问时间:2021-05-17 07:46:38


努力学习ing