编译步骤:
apt-get install -y make build-essential libssl-dev zlib1g-dev
apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
tar xvf Python-3.6.5.tgz
cd Python-3.6.5
./configure --enable-optimizations --prefix=/usr/local/python365
make -j20
我已经尝试过这种以及类似的编译 Python 的方法,但结果总是一样的,总是挂起:
0:00:28 load avg: 0.90 [ 25/406] test_asyncio