kali 安装gmpy2报错问题总结
1.缺失依赖包问题
原因是缺少了一些系统依赖,分别是:gmp
mpfr
mpc
安装以下依赖就可以完成安装gmpy2
:
apt-get install libgmp-dev
apt-get install libmpfr-dev
apt-get install libmpc-dev
2.缺失python的头文件和静态库包问题
sudo apt-get install python3-dev
3.下载中断问题
尝试换源后,重新下载。
PS:换源要注意备份!
vim /etc/apt/sources.list
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib