在Ubuntu默认python3.8为主路径


情况是这样的,我下载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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM