1.从pymedia主页中:
找到下载地方,即sourceforge中。
去
http://sourceforge.net/projects/pymedia/files/pymedia/
下载到最新版本的:
pymedia-1.3.7.2.win32-py2.4.exe
双击安装。
结果由于我此处安装的Python是2.7,所以,没法安装:
2.重新去:
http://sourceforge.net/projects/pymedia/files/pymedia/pymedia-1.3.7.3/
去下载源码版本的:
pymedia-1.3.7.3.tar.gz
解压后得到文件夹pymedia-1.3.7.3,进入后,执行安装,结果失败:
D:\tmp\dev_tools\python\pymedia\pymedia-1.3.7.3.tar\pymedia-1.3.7.3\pymedia-1.3.7.3>setup.py install Using WINDOWS configuration... Path for OGG not found. Path for VORBIS not found. Path for FAAD not found. Path for MP3LAME not found. Path for VORBISENC not found. Path for ALSA not found. Continue building pymedia ? [Y,n]:y running install running build running build_py creating build creating build\lib.win32-2.7 creating build\lib.win32-2.7\pymedia copying inst_lib\meta.py -> build\lib.win32-2.7\pymedia copying inst_lib\player.py -> build\lib.win32-2.7\pymedia copying inst_lib\__init__.py -> build\lib.win32-2.7\pymedia creating build\lib.win32-2.7\pymedia\audio copying inst_lib\audio\__init__.py -> build\lib.win32-2.7\pymedia\audio creating build\lib.win32-2.7\pymedia\video copying inst_lib\video\__init__.py -> build\lib.win32-2.7\pymedia\video creating build\lib.win32-2.7\pymedia\video\ext_codecs copying inst_lib\video\ext_codecs\__init__.py -> build\lib.win32-2.7\pymedia\video\ext_codecs creating build\lib.win32-2.7\pymedia\removable copying inst_lib\removable\__init__.py -> build\lib.win32-2.7\pymedia\removable running build_ext building 'pymedia.audio.sound' extension error: Unable to find vcvarsall.bat
3.然后看到对应的README中的关于安装部分的解释:
Installation
The installation is pretty simple is you have Python 2.3+ installed.
Just type: "python setup.py build" as normal user and"python setup.py install" as superuser. You may wish to run latter without
the first one. As superuser of course.
If you wish to be able to play movies, you’ll need SDL/DirectFB to be installed.
For Windows users there is a better way of making it work:
Just download binaries from the web site, run it and you’re all set.
所以,再去试试build,结果同样错误:
D:\tmp\dev_tools\python\pymedia\pymedia-1.3.7.3.tar\pymedia-1.3.7.3\pymedia-1.3.7.3>setup.py build Using WINDOWS configuration... Path for OGG not found. Path for VORBIS not found. Path for FAAD not found. Path for MP3LAME not found. Path for VORBISENC not found. Path for ALSA not found. Continue building pymedia ? [Y,n]:y running build running build_py running build_ext building 'pymedia.audio.sound' extension error: Unable to find vcvarsall.bat
4.搞得还是需要手动编辑,很是麻烦,所以暂时懒得折腾了。等有空再说吧。
转载请注明:在路上 » 【记录】折腾pymedia