Linux-ubantu install python3.9/charm-crypto/pythoncharm

Linux下的Ubuntu系统下载安装python3.9.0

https://blog.csdn.net/m0_59268754/article/details/127886797
1.镜像源

deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF"

2.依赖

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev

3.下载python3.9.0

wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz

4.python3.9.0进行解压

tar -zxvf Python-3.9.0.tgz

5.进入Python-3.9.0目录

cd Python-3.9.0/

5.1需要安装gcc编译器

sudo apt update
sudo apt install build-essential

5.2命令sudo apt install make来安装

sudo apt install make

6.开始安装

sudo ./configure --enable-optimizations
sudo make altinstall

8.查看

python -V

安装charm-crypto 停止服务了
https://wwxy.lanzouj.com/ioPJK1auk4ab 官网下载
升级了一次 pip
补了一次python3-dev 包导致的。
安装了GMP库
sudo apt install libgmp-dev
安装了pbc库
pbc库停止服务了
https://crypto.stanford.edu/pbc/download.html 官网下载
make找不到
安装flex工具
sudo apt-get install flex
安装bison工具
sudo apt-get install flex

你可能感兴趣的:(linux,运维,服务器)