发布时间:2019-08-02 11:04:18编辑:auto阅读(1458)
Python3.7 源码下载:
https://www.python.org/downloads/release/python-370/
解压源码:
tar -zxvf Python-3.7.0.tgz -C ~
安装源码编译所需的各种依赖库:(Ubuntu16.04环境下)
sudo apt-get install zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev
配置安装位置 配置优化:
./configure --prefix=/opt/python3.7 --enable-optimizations
编译:
make -j 4
安装:
sudo make install
也或者编译、安装一起:
sudo make && make install
上一篇: Python3的异常捕获和处理
下一篇: 零基础学Python要多久?Python
47494
45794
36792
34323
28960
25598
24443
19611
19111
17632
5466°
6048°
5570°
5638°
6573°
5376°
5378°
5884°
5855°
7170°