我想使用这个名为Music21的框架。导入子文件夹与外部文件夹相同
在shell中一切正常。例如,命令:
from music21 import corpus
完美地工作。在IDE中存在导入错误。
的music21路径是:
>>> music21.__file__
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/music21/__init__.pyc'
我把这个路径的IDE:
编辑:命令:
进口music21 打印目录(music21)
给我在shell:
[ 'DefinedContexts', 'DefinedContextsException', 'ElementException', 'ElementWrapper', 'GroupException', '组', 'JSONSerializer', 'JSONSerializerException', 'Music21Exception', 'Music21Object', 'Music21ObjectException', '测试', 'TestMock', '版本', 'VERSION_STR', 'WEAKREF_ACTIVE', '所有', '内建', 'DOC', '文件', '名','封装”, '路径', 'ABC', 'ABJ', '分析', '关节', '杆', '基极', '束', '弦', 'chordTables', '谱号' ,'编解码器','普通','合成','配置','转换器','复制','语料库','对位','默认','演示','推导','文档' doctest','duration','dynamics','editorial','environLocal','environment','expressions','figuredBass','graph','humdrum','inspect','instrument','interval' ,'internetwork','json','key','layout','lily','mainTest','matplotlib','medren','metadata','meter','midi','musedata'音符','音符','numpy','parse','pitch','ratios','repeat','roman','romanText','scale','serial','sieve','spanner' ,'流','SYS','节奏','测试','文本','领带','tinyNotation','trecento','类型','单元测试','uuid','语音引导' xmlnode']
,并在IDE:
[ '作者', '内建', '日期', 'DOC',“文件 ' '名',' 包”, 'music21']
“The IDE”?哪个IDE? – kindall 2011-06-14 22:23:12
netBeans 6.9.1。我正在使用雪豹。 – iddober 2011-06-15 06:56:04