0
我编写了一个简单的Python服务器,其中包括Java库Tabula的tabula-py包装器。在本地测试之后,使用相应的客户端并确定一切正常,我尝试在vanilla Ubuntu Server 16.04 VBox实例上运行它。正如我正在运行时错误(下同),我试图使用Python CLI一个简单的测试:无法在vanilla Ubuntu服务器上设置Python环境
>>> import tabula
>>> df = tabula.read_pdf("https://www.autotrolej.hr/att/wp-content/uploads/2016/04/lin-2-vazi-od-16-01-2017.pdf")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/wrapper.py", line 54, in read_pdf_table
output = subprocess.check_output(args)
File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
服务器从命令行启动和所使用的家当是:
#!/usr/bin/env python
我尝试导出pip冻结要求并在VBox服务器上安装相同的库,以便在许多这些库的安装期间获得相同的子进程错误。我猜这是Python环境问题,因为Ubuntu服务器没有预安装Python,所以我可能忽略了安装重要的核心库或设置环境变量。我错过了什么?
是的,Java不见了,TNX ... – krsnik93