赞
踩
一 3.7版本需要一个新的包libffi-devel,安装此包之后再次进行编译安装即可。
- #yum install libffi-devel -y
- #make install
若在安装前移除了/usr/bin下python的文件链接依赖,此时yum无法正常使用,需要自己下载相关软件包安装,为节省读者时间,放上链接
- #wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libffi-devel-3.0.13-18.el7.x86_64.rpm
- #rpm -ivh libffi-devel-3.0.13-18.el7.x86_64.rpm
安装完成后重新进行make install,结束后再次配置相关文件的软连接即可。
- 建立python3的软链
-
- 1
- # ln -s /usr/local/python3/bin/python3 /usr/bin/python3
再不行 就这样子 :
- yum -y groupinstall "Development tools"
- 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
- yum install libffi-devel -y
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get dist-upgrade
- sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
- sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
- sudo apt-get install libssl-dev openssl
- sudo apt-get install libffi-dev
https://www.jianshu.com/p/d5e8704c9fb7
https://blog.csdn.net/qq_36416904/article/details/79316972
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。