[英]Installing Audiere Module on Python 2.7 Windows 7
I have downloaded the module from sourceforge. 我从sourceforge下载了该模块。 audiere-1.9.4-win32
audiere-1.9.4-Win32的
The unzipped folder has the following folders: 解压缩的文件夹包含以下文件夹:
-bin -bin
-bindings -Bindings
-doc -doc
-include -包括
-lib -lib
The Bindings folder includes a file called audiere.pyd and an installation instruction which says: Bindings文件夹包含一个名为audiere.pyd的文件和一条安装说明,其中说明:
Into the Windows distribution of Python 2.2: Copy audiere.dll and audiere.pyd into your Python22 directory (or perhaps Python22/DLLs, depending on your system).
进入Python 2.2的Windows发行版:将audiere.dll和audiere.pyd复制到Python22目录(或者Python22 / DLL,具体取决于您的系统)。
I tried copying both files to: 我尝试将两个文件复制到:
-python 2.7/ -python 2.7 /
-python 2.7/DLL -python 2.7 / DLL
-python 2.7 /LIb/site-packages/ directory but -python 2.7 / LIb / site-packages /目录但是
import audiere
still gives a import error: 仍然会导致导入错误:
Traceback (most recent call last): File "", line 1, in import audiere ImportError: DLL load failed: The specified module could not be found. 回溯(最近一次调用最后一次):导入audiere中的文件“”,第1行ImportError:DLL加载失败:找不到指定的模块。
I am sure this is nothing to do with python 2.2 versus python 2.7 because people have successfully used audiere on 2.7 without any modification. 我确信这与python 2.2和python 2.7无关,因为人们已经成功地在2.7上使用了audiere而没有任何修改。
How do I install audiere on windows 7. 如何在Windows 7上安装audiere。
You can try to use pyglet . 您可以尝试使用pyglet 。 This library has the capability to play using external library called Avbin .
该库可以使用名为Avbin的外部库进行播放。 Simple example of how to use:
如何使用的简单示例:
import pyglet
music = pyglet.resource.media('music.mp3')
music.play()
pyglet.app.run()
If you have some problems with avbin, put the dll in the same directory of your code and insert this two lines before "pyglet.resource.media('music.mp3')": 如果你对avbin有一些问题,把dll放在代码的同一目录中,并在“pyglet.resource.media('music.mp3')”之前插入这两行:
pyglet.lib.load_library('avbin')
pyglet.have_avbin=True
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.