Raspberry pi编译安装python3.6

发布于 2020-01-15  1.94k 次阅读


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

废话不多说直接搞

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
访问时间:2024-10-10 02:47:07


正因为知道可以在空中翱翔,才会畏惧展翅的那一刻而忘却疾风 努力学习ing