Audiolab for Python 2.7

I have python 2.7 installed on my system and I need to use the audio lab module. I downloaded from the following site: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

When I import scikits.audiolab, I get the following error:

Traceback (most recent call last): File "C:/Python27/trystuff", line 1, in <module> from scikits.audiolab import formatinfo as format File "C:\Python27\lib\site-packages\scikits\__init__.py", line 1, in <module> __import__('pkg_resources').declare_namespace(__name__) ImportError: No module named pkg_resources 

What should I do?

+4
source share
2 answers

There is a binary build of windows scikits.audiolab (and many other things) for python 2.7 here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

audiolab will also require libsndfile. The link is right on this page, but I will add it too, since libsndfile is great:
http://www.mega-nerd.com/libsndfile/#Download

PS: you will need to place the libsndfile-1.dll file somewhere where python can find it. If you don't mind spending a small amount of disk space, you can drop a copy of it in the Python27 \ Lib \ site-packages \ scikits \ audiolab \ pysndfile directory.

+5
source

You need the pkg_resources module, which is part of setup_tools or a newer fork distribute . Your site also has Windows executables for installation. I would recommend distributing the module. They also provide you with easy installation and removal options for third-party modules.

0
source

Source: https://habr.com/ru/post/1379618/


All Articles