简体   繁体   English

尝试安装Python Audiolab模块,找不到模块

[英]Trying to install Python audiolab module, module not found

Not well experienced with doing installs. 没有很好的安装经验。 I finally got scikits.audiolab-0.11.0 installed, I think. 我认为我终于安装了scikits.audiolab-0.11.0。 Now the module cannot be found. 现在找不到模块。

from audiolab import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named audiolab

Does this need that I need to add it to my PATH or something? 这是否需要我将其添加到PATH或其他内容中? And how should I do that? 我该怎么办呢?

Below are 1. the last few lines of messages I got from the scikits.audiolab-0.11.0 install, and then below that 2. the results from echo $PATH on my machine. 下面是1.我从scikits.audiolab-0.11.0安装中获得的最后几行消息,然后在该行以下。2.我的计算机上echo $ PATH的结果。

Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scikits.audiolab-0.11.0-py2.7-macosx-10.6-intel.egg
Processing dependencies for scikits.audiolab==0.11.0
Searching for numpy==1.6.1
Best match: numpy 1.6.1
Adding numpy 1.6.1 to easy-install.pth file

Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Finished processing dependencies for scikits.audiolab==0.11.0

echo $PATH 回声$ PATH

Macintosh:~ wolf$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

You should make sure that wherever the audiolab package is stored, that that filepath is on your PYTHONPATH . 您应该确保无论audiolab软件包存储在哪里,该文件路径都在PYTHONPATH

PATH is used to launch programs, PYTHONPATH is where Python looks for modules. PATH用于启动程序, PYTHONPATH是Python查找模块的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM