试了好几次还是这样sudo python -m pip install PyQt5 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. WARNING: The directory '/home/trunk/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. ERROR: Could not find a version that satisfies the requirement PyQt5 (from versions: none) ERROR: No matching distribution found for PyQt5
时间: 2024-03-24 15:40:47 浏览: 317
CentOS下使用yum安装python-pip失败的完美解决方法
这个问题可能是因为你的 Python 版本太旧而导致的。PyQt5 已经不再支持 Python 2.7,建议你升级到 Python 3.x 版本,并使用类似以下的命令安装 PyQt5:
```
sudo apt-get install python3-pyqt5
```
或者使用以下命令安装 PyQt5:
```
sudo python3 -m pip install PyQt5
```
如果还有其他问题,请让我知道。
阅读全文