感觉就几句话的东西,应该和前一篇放在一起,想了想还是算了,就这样吧。。

我使用的是WSL版的Ubuntu 20.04 LTS,使用

  sudo apt-get install python-pip

时出现错误 

  E: Unable to locate package python-pip

经查询之后发现原因是Ubuntu下一些包的名字可能和emmm我们想象中有所区别,因此可以使用

  apt-cache search <packagename>

的方式查询 pip 相关的包,可以查询得到Ubuntu中的pip名字是 python-pip-whl,因此直接安装这个包即可。

 

参考来源:https://github.com/microsoft/WSL/issues/1482

相关文章:

  • 2021-04-20
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-08-07
  • 2021-06-08
相关资源
相似解决方案