情况是这样的,我下载pygame时总是下载到python3.6的目录下面而我用的是python3.8所以导致python3.8下没有pygame模块
1.$ which python3.
8
/
usr
/
bin
/
python3.
8
2.$ sudo update
-
alternatives
-
-
install
/
usr
/
bin
/
python3 python3
/
usr
/
bin
/
python3.
8
1
3. sudo update-alternatives --config python3