想运行mkdoc结果Python版本不符合要求,废话不多说,直接上代码
做个记录,仅此而已
1 2 3 4 5 6 7 8 9 10 11
| wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz tar zxvf Python-3.7.5.tgz dnf -y install gcc zlib* libffi-devel cd Python-3.7.5/ ./configure --prefix=/usr/local/python3 --enable-optimizations make make install rm -rf /usr/bin/python3 ln -s /usr/local/python3/bin/python3 /usr/bin/python3 rm -rf /usr/bin/pip3 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
|
编译安装很慢,请耐心等待
鸣心/Write