下載miniconda:
這裏使用第一個,python3.5
安裝到D盤:
執行activate.bat:
D:win10Miniconda3319x64Py35Scriptsactivate.bat
pip install pyqt5==5.10 -i https://pypi.tuna.tsinghua.edu.cn/simple
測試:
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QWidget if __name__ == '__main__': app = QApplication(sys.argv) w = QWidget() w.resize(250, 150) w.move(300, 300) w.setWindowTitle('Simple') w.show() sys.exit(app.exec_())