2024-01-24 install python3 in ro

2024-03-14  本文已影响0人  豪威Howie
dnf install gcc openssl-devel bzip2-devel libffi-devel -y
# sudo apt-get install build-essential libssl-dev libffi-dev zlib1g-dev liblzma-dev -y

wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
tar xzf Python-3.10.0.tgz
cd Python-3.10.0
./configure --enable-optimizations
make -j 8 
make altinstall
ln -s /usr/local/bin/python3.10 /usr/bin/python
ln -s /usr/local/bin/pip3.10 /usr/bin/pip
上一篇 下一篇

猜你喜欢

热点阅读