提醒:本文已经超过 1602 天未修改,其中某些信息可能已经过时,请谨慎使用!
你似乎正在查看一篇很久远的文章。
为了你这样的访客,我特地保留了我的历史博文。不要笑话过去的我,用温柔的目光看下去吧。
废话不多说直接搞
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.iloli.xin/2160.html
访问时间:2024-12-02 01:06:58
Comments | 2 条评论
博主 small_xu038
py12306还没搞成功
博主 small_xu038
@small_xu038 什么也不说了,给大家拜个早年吧