Reading package lists... Done Building dependency tree... Done Reading state information... Done Package libssl-dev:armhf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libssl-dev:armhf' has no installation candidate
时间: 2024-03-16 19:40:59 浏览: 409
Ubuntu- Reading package lists... Error!解决方案.docx
5星 · 资源好评率100%
这个问题可能是因为你的系统架构不是 `armhf` 导致的。你可以尝试执行以下命令来安装适合你系统架构的 libssl-dev 包:
```
sudo apt-get install libssl-dev
```
如果你的系统是基于 64 位的架构,则使用以下命令安装:
```
sudo apt-get install libssl-dev:amd64
```
安装完成之后,再重新编译 Python 并重新安装 pip:
```
./configure --with-openssl=/usr/include/openssl
make
sudo make install
sudo apt-get install python3-pip
```
这样应该就可以解决你的问题了。
阅读全文