情况是这样的,我下载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
在Ubuntu默认python3.8为主路径

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-07-14
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案