起因:
要安装pip,但是无法安装
pip install baidu.aip
Command 'pip' not found, but can be installed with:
sudo apt install python-pip
sudo apt install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
解决办法:
因为需要更新apt库
sudo apt-get update
本文解决在尝试使用pip安装包时遇到的问题,当运行pip install baidu.aip命令时,系统提示找不到pip。通过使用sudo apt install python-pip命令尝试安装pip,但遇到了apt库未更新导致的无法定位python-pip包的问题。最终解决方案为先更新apt库。
1105

被折叠的 条评论
为什么被折叠?



