Ubuntu 20.04にpython2用pyqt5をインストールする

Ubuntu 20.04にpython2用pyqt5をインストールする

私はコマンドを実行します

pip install pyqt5

次のエラーが発生します。

~$ 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
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pyqt5 (from versions: none)
ERROR: No matching distribution found for pyqt5

必ず知っておいてください。Python2 pyqt5そしてPython3ではない pyqt5、私が受け取ったプログラムが古すぎるからです。

ご協力ありがとうございます! :)

ベストアンサー1

Python2用のpyqt5をビルドしてみてください。存在するここ著者は同じ問題に直面して、LinuxでPython2用にビルドする手順を作成しました。

おすすめ記事