当我运行pip install QtCore
时它返回:
ERROR: Could not find a version that satisfies the requirement QtCore (from versions: none)
ERROR: No matching distribution found for QtCore
Pypi上不存在QtCore。您可能需要的是PyQt5:
pip install PyQt5
然后像这样访问QtCore:
from PyQt5.QtCore import Qt
请参阅PyQt5文档。