我在我的Mac上安装了BeautifulSoup,使用的是easy_install,没有任何错误,我也可以完美地运行test.py文件。但是,当我试图在另一个文件中使用BeautifulSoup时,我会得到以下错误: File "/Users/Conor/Desktop/test.py", line 54, in <module>ImportError: No module named Beautiful
我的职能是: """ Renames all the files to be cropped-%d.xxx """ for thing in os.listdir(path): os.rename(os.path.join(path, thing), os.path.join(path, sys.argv[1]+".cropped{0}".forma
我想在我的项目中使用完整的导入名(请参阅)。上面描述的问题已经解决了,一切都很好(编辑:如果脚本是用execfile启动的),在eclipse和pydev之外(运行在windows上),在linux上的ccp中(它内置了jython )。然而,eclipse给出了以下错误:ImportError: No module named guiProject gui gui.py