我把系统的Python版本从3.9.9升级到3.10.0后系统的dnf命令和yum、pip不能用了

我把系统的Python版本从3.9.9升级到3.10.0后系统的dnf命令和yum、pip命令不能用了,
[root@ecs-86cf Python-3.10.0]# python3 --version
Python 3.9.9
[root@ecs-86cf Python-3.10.0]# vi ~/.bashrc
[root@ecs-86cf Python-3.10.0]# source ~/.bashrc
[root@ecs-86cf Python-3.10.0]# python3 --version
Python 3.10.0
[root@ecs-86cf Python-3.10.0]# pip3 --version
pip 21.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)
[root@ecs-86cf Python-3.10.0]# sudo ln -sf /usr/local/Python3.10.0/bin/python3 /usr/bin/python3
[root@ecs-86cf Python-3.10.0]# ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 35 Mar 15 20:51 /usr/bin/python3 → /usr/local/Python3.10.0/bin/python3
[root@ecs-86cf Python-3.10.0]# pip3 install --upgrade pip
Traceback (most recent call last):
File “/usr/bin/pip3”, line 7, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 10, in
from pip._internal.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 17, in
from pip._internal import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 20, in
from pip import main
ModuleNotFoundError: No module named ‘pip’
[root@ecs-86cf Python-3.10.0]#
[root@ecs-86cf Python-3.10.0]# pip3 install --upgrade pip --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i Simple Index
Traceback (most recent call last):
File “/usr/bin/pip3”, line 7, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 10, in
from pip._internal.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 17, in
from pip._internal import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 20, in
from pip import main
ModuleNotFoundError: No module named ‘pip’
[root@ecs-86cf Python-3.10.0]# pip3 install attrs numpy decorator sympy cffi pyyaml pathlib2 psutil protobuf scipy requests absl-py --trusted-host ms-release.obs.cn.myhuaweicloud.com -i Simple Index
Traceback (most recent call last):
File “/usr/bin/pip3”, line 7, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 10, in
from pip._internal.main import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 17, in
from pip._internal import main
ModuleNotFoundError: No module named ‘pip’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 20, in
from pip import main
ModuleNotFoundError: No module named ‘pip’