Installing Python 3.8 on Ubuntu 18.04 from Source
### Installing Python 3.8 on Ubuntu 18.04 from Source ###
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
$ wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
$ tar -xf Python-3.8.10.tgz
$ cd Python-3.8.10
$ ./configure --enable-optimizations
$ make -j cpu-core_number ### use what your cpu core#
$ sudo make altinstall
$ python3.8 --version
0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁