Python 官方文档:入门教程 => 点击学习
python3.7 源码下载: https://www.python.org/downloads/release/Python-370/ 解压源码: tar -zxvf Python-3.7.0.tgz -C ~ 安装源码编译所需
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
--结束END--
本文标题: Ubuntu16.04安装Python3
本文链接: https://lsjlt.com/news/184635.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0