2024年7月29日 星期一

python 2.7 編譯

 1: download python 2.7.18

   https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz

   

2: change deb-src

   software & Updates 裡面改source code到Taiwan

   

3: apt-get build-dep python3

4: sudo apt-get install \

curl \

gcc \

libbz2-dev \

libev-dev \

libffi-dev \

libgdbm-dev \

liblzma-dev \

libncurses-dev \

libreadline-dev \

libsqlite3-dev \

libssl-dev \

make \

tk-dev \

wget \

zlib1g-dev

5:: apt-get install zlib1g-dev libdb-dev libncurses5-dev libncursesw5-dev libsqlite3-dev libssl-dev

6: ./configure

7: make -j`nproc`

8: make install

9: wget https://bootstrap.pypa.io/pip/2.7/get-pip.py

10: python get-pip.py


沒有留言:

張貼留言