• PyQT6 pip install (三) 百篇文章学PyQT


            本文章是百篇文章学PyQT的第三篇,本文讲述如何使用PIP安装PyQT6,PyQT6在安装过程中会遇到很多问题,博主在本篇文章中将遇到和踩过的坑总结出来,可以供大家参考,希望大家安装顺利。包括 安装、遇到问题的解决方案、怎么解决所有问题,让PYQT6环境完整搭建起来;

             本文作者原创,未经允许禁止转载。

    PyQT6 pip install (三) 百篇文章学PyQT目录

    1 Anaconda Prompt

    2 安装PYQT6

    2.1 命令1

    2.2 命令2

    2.3 命令3

    2.4 命令4

    2.5 网络异常

    2.6 成功提示

     2.7 检查

    3 安装PYQT6 其它

    3.1 QtWebEngineWidgets

    3.2 PySide6

    3.3 opencv库

    4 本地环境

    5 异常


    1 Anaconda Prompt

            右键管理员权限打开工具进行安装PYQT6

    2 安装PYQT6

    2.1 命令1

            首先要安装

    pip install sip

    2.2 命令2

            pip 要版本足够,pip 升级方法:

     python -m pip install --upgrade pip

    2.3 命令3

            安装PyQt6

    pip install PyQt6

    2.4 命令4

            安装PyQt6-tools:

    pip install pyqt6-tools 

    2.5 网络异常

            网速满可以换国内站

    1. 清华镜像: https://pypi.tuna.tsinghua.edu.cn/simple
    2. 中国科学技术大学 : https://pypi.mirrors.ustc.edu.cn/simple
    3. 豆瓣: http://pypi.douban.com/simple/
    4. 阿里云: http://mirrors.aliyun.com/pypi/simple/
    5. 用法
    6. pip install PyQT6 -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
    7. pip install PyQT6-tools -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

    2.6 成功提示

            安装成功后会有成功提示

     2.7 检查

            输入命令查看是否有安装成功信息

     pip show PyQt6

    3 安装PYQT6 其它

            安装QT其它依赖

    3.1 QtWebEngineWidgets

            QtWebEngineWidgets模块

    pip install PyQtWebEngine

    3.2 PySide6

            Python图形库,必须安装
     

    pip install PySide6

    3.3 opencv库

    1. pip install opencv-python
    2. pip install opencv_contrib-python


    4 本地环境

            本文环境: Python 3.11.0        PYQT6        Anaconda3 conda 4.5.11       

    1. Package Version
    2. ---------------------------------- ---------
    3. alabaster 0.7.11
    4. anaconda-client 1.7.2
    5. anaconda-navigator 1.9.2
    6. anaconda-project 0.8.2
    7. appdirs 1.4.3
    8. asn1crypto 0.24.0
    9. astroid 2.0.4
    10. astropy 3.0.4
    11. atomicwrites 1.2.1
    12. attrs 18.2.0
    13. Automat 0.7.0
    14. Babel 2.6.0
    15. backcall 0.1.0
    16. backports.shutil-get-terminal-size 1.0.0
    17. beautifulsoup4 4.6.3
    18. bitarray 0.8.3
    19. bkcharts 0.2
    20. blaze 0.11.3
    21. bleach 2.1.4
    22. bokeh 0.13.0
    23. boto 2.49.0
    24. Bottleneck 1.2.1
    25. certifi 2018.8.24
    26. cffi 1.11.5
    27. chardet 3.0.4
    28. click 7.1.2
    29. cloudpickle 0.5.5
    30. clyent 1.2.2
    31. colorama 0.3.9
    32. comtypes 1.1.7
    33. conda 4.5.11
    34. conda-build 3.15.1
    35. constantly 15.1.0
    36. contextlib2 0.5.5
    37. cryptography 2.3.1
    38. cycler 0.10.0
    39. Cython 0.28.5
    40. cytoolz 0.9.0.1
    41. dask 0.19.1
    42. datashape 0.5.4
    43. decorator 4.3.0
    44. defusedxml 0.5.0
    45. distributed 1.23.1
    46. docutils 0.14
    47. entrypoints 0.2.3
    48. et-xmlfile 1.0.1
    49. fastcache 1.0.2
    50. filelock 3.0.8
    51. Flask 1.0.2
    52. Flask-Cors 3.0.6
    53. gevent 1.3.6
    54. glob2 0.6
    55. greenlet 0.4.15
    56. h5py 2.8.0
    57. heapdict 1.0.0
    58. html5lib 1.0.1
    59. hyperlink 18.0.0
    60. idna 2.7
    61. imageio 2.4.1
    62. imagesize 1.1.0
    63. incremental 17.5.0
    64. ipykernel 4.10.0
    65. ipython 6.5.0
    66. ipython_genutils 0.2.0
    67. ipywidgets 7.4.1
    68. isort 4.3.4
    69. itsdangerous 0.24
    70. jdcal 1.4
    71. jedi 0.12.1
    72. Jinja2 2.10
    73. jsonschema 2.6.0
    74. jupyter 1.0.0
    75. jupyter-client 5.2.3
    76. jupyter-console 5.2.0
    77. jupyter-core 4.4.0
    78. jupyterlab 0.34.9
    79. jupyterlab-launcher 0.13.1
    80. keyring 13.2.1
    81. kiwisolver 1.0.1
    82. lazy-object-proxy 1.3.1
    83. llvmlite 0.24.0
    84. locket 0.2.0
    85. lxml 4.2.5
    86. MarkupSafe 1.0
    87. matplotlib 2.2.3
    88. mccabe 0.6.1
    89. menuinst 1.4.14
    90. mistune 0.8.3
    91. mkl-fft 1.0.4
    92. mkl-random 1.0.1
    93. more-itertools 4.3.0
    94. mpmath 1.0.0
    95. msgpack 0.5.6
    96. multipledispatch 0.6.0
    97. navigator-updater 0.2.1
    98. nbconvert 5.4.0
    99. nbformat 4.4.0
    100. networkx 2.1
    101. nltk 3.3
    102. nose 1.3.7
    103. notebook 5.6.0
    104. numba 0.39.0
    105. numexpr 2.6.8
    106. numpy 1.15.1
    107. numpydoc 0.8.0
    108. odo 0.5.1
    109. olefile 0.46
    110. opencv-contrib-python 4.6.0.66
    111. opencv-python 4.6.0.66
    112. openpyxl 2.5.6
    113. packaging 17.1
    114. pandas 0.23.4
    115. pandocfilters 1.4.2
    116. parso 0.3.1
    117. partd 0.3.8
    118. path.py 11.1.0
    119. pathlib2 2.3.2
    120. patsy 0.5.0
    121. pep8 1.7.1
    122. pickleshare 0.7.4
    123. Pillow 5.2.0
    124. pip 22.3.1
    125. pkginfo 1.4.2
    126. pluggy 0.7.1
    127. ply 3.11
    128. prometheus-client 0.3.1
    129. prompt-toolkit 1.0.15
    130. psutil 5.4.7
    131. py 1.6.0
    132. pyasn1 0.4.4
    133. pyasn1-modules 0.2.2
    134. pycodestyle 2.4.0
    135. pycosat 0.6.3
    136. pycparser 2.18
    137. pycrypto 2.6.1
    138. pycurl 7.43.0.2
    139. pyflakes 2.0.0
    140. Pygments 2.2.0
    141. pylint 2.1.1
    142. pyodbc 4.0.24
    143. pyOpenSSL 18.0.0
    144. pyparsing 2.2.0
    145. PyQt5 5.15.7
    146. PyQt5-Qt5 5.15.2
    147. PyQt5-sip 12.11.0
    148. PyQt6 6.1.0
    149. pyqt6-plugins 6.1.0.2.2
    150. PyQt6-Qt6 6.4.1
    151. PyQt6-sip 13.4.0
    152. pyqt6-tools 6.1.0.3.2
    153. PyQtWebEngine 5.15.6
    154. PyQtWebEngine-Qt5 5.15.2
    155. PySide6 6.4.0.1
    156. PySide6-Addons 6.4.0.1
    157. PySide6-Essentials 6.4.0.1
    158. PySocks 1.6.8
    159. pytest 3.8.0
    160. pytest-arraydiff 0.2
    161. pytest-astropy 0.4.0
    162. pytest-doctestplus 0.1.3
    163. pytest-openfiles 0.3.0
    164. pytest-remotedata 0.3.0
    165. python-dateutil 2.7.3
    166. python-dotenv 0.21.0
    167. pytz 2018.5
    168. PyWavelets 1.0.0
    169. pywin32 223
    170. pywinpty 0.5.4
    171. PyYAML 3.13
    172. pyzmq 17.1.2
    173. qt6-applications 6.1.0.2.2
    174. qt6-tools 6.1.0.1.2
    175. QtAwesome 0.4.4
    176. qtconsole 4.4.1
    177. QtPy 1.5.0
    178. requests 2.19.1
    179. rope 0.11.0
    180. ruamel_yaml 0.15.46
    181. scikit-image 0.14.0
    182. scikit-learn 0.19.2
    183. scipy 1.1.0
    184. seaborn 0.9.0
    185. Send2Trash 1.5.0
    186. service-identity 17.0.0
    187. setuptools 40.2.0
    188. shiboken6 6.4.0.1
    189. simplegeneric 0.8.1
    190. singledispatch 3.4.0.3
    191. sip 6.7.5
    192. six 1.11.0
    193. snowballstemmer 1.2.1
    194. sortedcollections 1.0.1
    195. sortedcontainers 2.0.5
    196. Sphinx 1.7.9
    197. sphinxcontrib-websupport 1.1.0
    198. spyder 3.3.1
    199. spyder-kernels 0.2.6
    200. SQLAlchemy 1.2.11
    201. statsmodels 0.9.0
    202. sympy 1.1.1
    203. tables 3.4.4
    204. tblib 1.3.2
    205. terminado 0.8.1
    206. testpath 0.3.1
    207. toml 0.10.2
    208. toolz 0.9.0
    209. tornado 5.1
    210. tqdm 4.26.0
    211. traitlets 4.3.2
    212. Twisted 18.7.0
    213. unicodecsv 0.14.1
    214. urllib3 1.23
    215. wcwidth 0.1.7
    216. webencodings 0.5.1
    217. Werkzeug 0.14.1
    218. wheel 0.31.1
    219. widgetsnbextension 3.4.1
    220. win_inet_pton 1.0.1
    221. win-unicode-console 0.5
    222. wincertstore 0.2
    223. wrapt 1.10.11
    224. xlrd 1.1.0
    225. XlsxWriter 1.1.0
    226. xlwings 0.11.8
    227. xlwt 1.3.0
    228. zict 0.1.3
    229. zope.interface 4.5.0

    5 异常

             需要先将pip升级到最新才能下载,否则会报错;

     

  • 相关阅读:
    K8S核心概念之SVC(易混淆难理解知识点总结)
    Java:现实世界中最流行的10个Java应用程序示例
    论文阅读_世界模型
    java数据结构--阻塞队列
    nbcio-boot移植到若依ruoyi-nbcio平台里一formdesigner部分(四)
    每个前端都要学的【前端自动化部署】,Devops,CI/CD
    关于运行franka_ros包中的franka_gazebo报错VMware: vmw_ioctl_command error 无效的参数.
    el-date-picker日期列表样式更换为完全不同的样式保证弹出日期弹窗的功能不变
    无代码平台助力中山医院搭建“智慧化管理体系”,实现智慧医疗
    Python中创建类的六重境界
  • 原文地址:https://blog.csdn.net/qq_37529913/article/details/127944429