首页 > 编程语言 >Python编译安装

Python编译安装

时间:2023-01-07 14:57:37浏览次数:43  
标签:bin Python share devel 编译 usr 安装 python3

# 安装依赖
yum -y install zlib-devel bzip2-devel openssl-devel \
ncurses-devel sqlite-devel readline-devel tk-devel \
gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
# 下载 Python 源码包
# 华为云下载地址
# https://mirrors.huaweicloud.com/python/
wget -c https://mirrors.huaweicloud.com/python/3.10.9/Python-3.10.9.tgz
# 配置
./configure --prefix=/usr/local/share/python3 --enable-optimizations

# 编译
make

make install

# 建立软连接
ln -s /usr/local/share/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/share/python3/bin/pip3 /usr/bin/pip3

标签:bin,Python,share,devel,编译,usr,安装,python3
From: https://www.cnblogs.com/suuuch/p/17032620.html

相关文章

  • windows电脑上安装IntelliJ IDEA工具运行开源项目
    1工具下载官网下载地址:https://www.jetbrains.com/idea/download/#section=windows推荐大家使用社区版就行,这里下载这个工具的话,主要是为了后面在本地打开开源项目的源码并......
  • AnolisOS-8.6安装EM13C&Agent部署&EM常用命令&集群数据库添加
    系统:AnolisOS8.6数据库:Oracle19.16说明:此安装文档选择的是AdvancedInstallaioin,内存要求10G.安装EM前需了解相关参数要求.1、安装数据库1.1、去除虚拟嵌套虚拟机功能yum......
  • ffmpeg安装图片转视频
     乌班图:ffmpeg图片转视频一键安装命令:aptinstallffmpeg Centos1.在宝塔终端输入:wgethttp://download.bt.cn/install/ext/ffmpeg.sh&&shffmpeg.sh2.......
  • ubuntu安装串口助手
    1kxb@kxb:~$sudoapt-getinstallminicom2[sudo]kxb的密码:3正在读取软件包列表...完成4正在分析软件包的依赖关系树5正在读取状态信息...完......
  • ubunut安装qtcreater
    安装gcc1kxb@kxb:~$gcc-v23Command'gcc'notfound,butcanbeinstalledwith:45sudoaptinstallgcc67kxb@kxb:~$sudoaptinstall......
  • Python----函数进阶
    函数的返回值作为参数传递给其他函数deffunc():return50deffunc1(num):print(num+100)func1(func())函数返回多个值deffunc():#返回值可以是......
  • Python库之os库和logging库的基本使用说明
    使用os库操作目录及文件使用os.sep()方法获取系统分隔符print(os.sep)使用os.name()方法获取操作系统的平台类型print(os.name)使用os.getcwd()方法获取当前工作目录p......
  • 使用python发送系统通知(适用于linux,windows等)
    使用pip安装:pip3installplyer使用方法:fromplyerimportnotificationnotification.notify(title="test", #标题message="aaaa", #内容app_ic......
  • Debian安装完成普通用户找不到命令必须使用sudo才可以
    Debian安装完成普通用户找不到命令必须使用sudo之前做测试的时候在起了一个Debian的虚拟机,结果系统安装完成发现问题很多,系统就连最基础的service、reboot、poweroff等......
  • python的虚拟环境
    实操:1.安装虚拟环境的工具virtualenvpipx.xinstallvirtualenv2.命令行创建virtualenvF:\envs\v1--python=python3.93.如何使用虚拟环境1绝对路径的方式......