Python 3.11.3 is not available in the official CentOS 7.5 repositories, so you will need to install it manually. Here are the steps to install Python 3.11.3 on CentOS 7.5:
-
Install the dependencies required to build Python:
sudo yum groupinstall -y 'Development Tools' sudo yum install -y openssl-devel libffi-devel zlib-devel bzip2-devel sqlite-devel xz-devel
-
Download the source code for Python 3.11.3 from the official website:
wget https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tgz
-
Extract the source code and navigate to the extracted directory:
tar -xzf Python-3.11.3.tgz cd Python-3.11.3
-
Configure the build options:
./configure --enable-optimizations
-
Build and install Python:
make -j 4 sudo make altinstall
Note: We use
make altinstall
instead ofmake install
to prevent overwriting the default Python installation on the system. -
Verify the installation:
python3.11 --version
This should output
Python 3.11.3
. -
PYTHONPATH
ln -s /usr/local/bin/python3.11 /usr/bin/python3
ln -s /usr/local/bin/pip3.11 /usr/bin/pip3
That's it! You have now installed Python 3.11.3 on CentOS 7.5.
最新评论
# 这只是一个创建远程登录并授权的语句、仅作为记录 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Fit2cloud!' WITH GRANT OPTION;
当MGR集群初始化结束后,需要开启MGR集群自启动(需要有一台节点是自动开启引导) loose-group_replication_start_on_boot = ON #设置节点是否在启动时自动启动 MGR 集群 loose-group_replication_bootstrap_group = ON #设置节点是否作为初始引导节点启动集群
密码:blog.sirliu.com
本内容密码:blog.sirliu.com 最新整理的文章在这里喔:https://blog.sirliu.com/2018/11/shell_lian_xi_ti.html