本文介绍了没有模块QtMultimedia [Mac OS-Anaconda-Python 3.7-PyQt5]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想和PyQt5
的QtMultimedia
一起玩,但这不起作用.
I would like to play with QtMultimedia
of PyQt5
but this does not work.
> conda list pyqt
# packages in environment at /anaconda3:
#
# Name Version Build Channel
pyqt 5.9.2 py37h655552a_2
> python
Python 3.7.0 (default, Jun 28 2018, 07:39:16)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda custom (64-bit) on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtMultimedia
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.QtMultimedia'
这看起来像个错误.
有些奇怪:我有一个文件/anaconda3/lib/python3.7/site-packages/PyQt5/QtMultimediaWidgets.pyi
,该文件导入了QtMultimedia
,但没有导入QtMultimedia.pyi
.
Something strange : I have a file /anaconda3/lib/python3.7/site-packages/PyQt5/QtMultimediaWidgets.pyi
which imports QtMultimedia
but no QtMultimedia.pyi
.
我可以轻松解决此问题,并且报告此错误的最佳方法是什么?
Can I easily fix this and what is the best way to report this bug ?
推荐答案
实际上是conda的一个错误.我最近做了一些更新来解决我的问题.
Indeed this was a bug from conda. I have made recently some updates that fixe my problem.
这篇关于没有模块QtMultimedia [Mac OS-Anaconda-Python 3.7-PyQt5]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!