在Ubuntu默认python3.8为主路径

时间:2021-04-06 20:21:44   收藏:0   阅读:12

情况是这样的,我下载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
技术分享图片

原文:https://www.cnblogs.com/laochun/p/14622625.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!