2019年11月25日 星期一 CQCET
gmpy2需要python2上运行,另外还需mpfr,mpc,gmp
apt-get install libmfr-dev
apt-get install libmpc-dev
apt-get install libgmp-dev
然后安装 gmpy2
pip install gmpy2
如果出现下载中断可试着更换源
路径: /etc/apt/sources.list
ps:注意备份
#阿里云
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
其他源:https://blog.csdn.net/qq_35428201/article/details/86559339
多尝试
跟换 添加源后下载成功