我已经下载了OCROpus Reader并在我的Ubuntu机器中使用 - :
将其安装在virtualenv中angular.controller('triggerController',
['$scope',function($scope){
$scope.t_text = 'I am original';
$scope.clickme = function(){
$scope.t_text = 'I have been clicked';
}
}
]).directive('theClick', function(){
return {
scope: true,
restrict:'E',
link: function(scope, elm, attr){
scope.sample = attr.values;
elm.bind('click', function(e){
scope.clickme(elm);
})
},
controller:'triggerController',
template: '<h1>{{sample}}</h1>'
}})
现在当我按照命令 - :
$ virtualenv ocropus_venv/
$ source ocropus_venv/bin/activate
$ pip install -r requirements_1.txt
# tables has some dependencies which must be installed first:
$ pip install -r requirements_2.txt
$ wget -nd http://www.tmbdev.net/en-default.pyrnn.gz
$ mv en-default.pyrnn.gz models/
我收到错误 - :
$ ./run-test
这是一个问题因为我在虚拟环境中安装了OCROpus吗? shell脚本是否无法找到已安装软件包的PATH?
需要一些帮助。
run-test.sh的内容是 - :
./run-test: line 4: ocropus-nlbin: command not found
答案 0 :(得分:5)
您需要在虚拟环境中运行python setup.py install
。
文档在虚拟环境中运行时错过了该步骤。