從抓原始碼到手動編譯並指定安裝資料夾
$ wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz $ md5sum Python-3.7.9.tgz bcd9f22cf531efc6f06ca6b9b2919bd4 Python-3.7.9.tgz $ tar zxvf Python-3.7.9.tgz && cd Python-3.7.9 $ ./configure --prefix=/Software/Python/3.7.9-r900 --enable-optimizations $ time make -j 15 >make.log 2>&1 & $ make install
檢查安裝大小,並更新PIP套件管理程式
$ du -h --max-depth=1 /Software/Python/3.7.9-r900/ $ /Software/Python/3.7.9-r900/bin/python3 --version $ /Software/Python/3.7.9-r900/bin/pip3 list $ /Software/Python/3.7.9-r900/bin/python3.7 -m pip install --upgrade pip $ /Software/Python/3.7.9-r900/bin/pip3 list
參考資料
_EOF_
沒有留言:
張貼留言