1、系统环境介绍 1.1 系统版本 debian-9.6.0-amd64-netinst 1.2 系统内核 linux lnnkee 4.9.0-8-amd64 #1 SMP Debian 4.9.1
1、系统环境介绍
1.1 系统版本
debian-9.6.0-amd64-netinst
1.2 系统内核
linux lnnkee 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
2、下载安装包
https://www.python.org/ftp/Python/3.7.0/Python-3.7.0.tar.xz
3、配置安装环境
apt install libffi-dev #否则将会提示No module named‘_ctypes’
4、编译安装python
tar xvf Python-3.7.0.tar
cd Python-3.7.0
./configure --prefix=/usr/local/python3.7/ --enable-optimizations
make && make install
5、设置默认python
ln -s /usr/local/python3.7/bin/python3.7 /usr/bin/python
ln -s /usr/local/python3.7/bin/pip3.7 /usr/bin/pip
6、安装完成
--结束END--
本文标题: Debian服务器之安装Python3.
本文链接: https://www.lsjlt.com/news/189813.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-13
2024-05-13
2024-05-11
2024-05-11
2024-05-10
2024-05-07
2024-04-30
2024-04-30
2024-04-30
2024-04-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0