goose安装将goose放在python-goose目录中。当我尝试在IDLE提示符下导入鹅时,我得到:
>>> from goose import Goose
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from goose import Goose
ImportError: No module named goose
因为goose安装在python-goose目录中,我相信导入语法应该是: 来自python-goose.goose import Goose 但是当我运行它时,我收到以下语法错误消息:
>>> from python-goose.goose import Goose
SyntaxError: invalid syntax
任何关于如何正确进口鹅的建议都将受到赞赏。
答案 0 :(得分:0)
只需复制 goose 目录/goose-extracor/goose
并将其粘贴到goose-extractor和python包目录
/goose-extractor
/goose
并导入
from goose import Goose