(我的计算机上的操作系统是Windows8)我试图通过以下步骤安装和运行geniatagger:
在cmd中:
python setup.py install
在Python中:
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
我已经寻找了许多解决方案,但错误仍然无法修复。我怎么才能修好它?
发布于 2016-05-12 09:26:53
注意,错误是D:
而不是C:
。shell设置中的某些内容似乎默认为D驱动器。这个脚本是从C驱动器还是从D运行的?如果是C驱动器,您可以尝试使用相对平移而不是绝对。如果它是从D驱动器运行的,你能从C运行吗?如果它必须从D运行,那么您必须深入到genia文档中,才能了解如何进行一些自定义配置。
https://stackoverflow.com/questions/37180590
复制相似问题