(我电脑上的操作系统是Windows8) 我尝试按照以下步骤安装和运行geniatagger:
在cmd中:
python setup.py install
在Python shell中:
from geniatagger import Geniatagger
tagger = GeniaTagger('C:\Users\wen\Downloads\geniatagger\geniatagger')
错误消息:
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
tagger = GeniaTagger('C:\Users\wen\Downloads\geniatagger\geniatagger')
File "build\bdist.win-amd64\egg\geniatagger.py", line 21, in __init__
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "D:\Program Files\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "D:\Program Files\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
我找了很多解决方案,但错误仍然无法修复。 我该如何解决?
答案 0 :(得分:0)
请注意,错误代表的是D:
,而不是C:
。 shell设置中的某些内容似乎默认为D驱动器。此脚本是从C驱动器还是D运行?如果它是C驱动器,您可以尝试使用相对路径而不是绝对路径。如果它从D驱动器运行,你可以从C运行吗?如果它必须从D运行,你将不得不深入研究genia tagger文档以找出如何进行一些自定义配置。