2016-05-12 76 views
1

(我的计算机上的操作系统是Windows8的) 我试图安装并按照以下步骤运行geniatagger文件:吉尼亚标注器无法找到Python2.7(使用Windows)

在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 

我已经找了很多解决方案,但错误仍然无法修复。 我该如何解决它?

回答

0

请注意,错误说D:而不是C:。你的shell设置中的某些东西似乎默认为D驱动器。该脚本是从C驱动器还是D运行?如果它是C盘,你可以尝试使用相对路径而不是绝对路径。如果它从D驱动器运行,你可以从C运行它吗?如果它必须从D开始运行,那么您需要深入了解genia tagger文档以了解如何执行一些自定义配置。