运行于 Ubuntu 16.04、Python 3.6.2
我之前已经成功使用过这个包。事实上,它可以在另一台电脑上运行,但不是我需要它运行的电脑。 https://pypi.python.org/pypi/pandas_access
import pandas_access as mdb
df = mdb.read_table("myDatabase", "myTable")
Run Code Online (Sandbox Code Playgroud)
回溯(最近一次调用最后一次):
文件“”,第 1 行,位于
文件“/home/nfw/anaconda3/lib/python3.6/site-packages/pandas_access/ init .py”,第 118 行,在 read_table schemas = to_pandas_schema(read_schema(rdb_file, schema_encoding),
文件“/home/nfw/anaconda3/lib/python3.6/site-packages/pandas_access/ init .py”,第 59 行,在 read_schema 输出 = subprocess.check_output(['mdb-schema', rdb_file])
文件“/home/nfw/anaconda3/lib/python3.6/subprocess.py”,第 336 行,在 check_output **kwargs).stdout
文件“/home/nfw/anaconda3/lib/python3.6/subprocess.py”,第 403 行,以 Popen(*popenargs, **kwargs) 作为进程运行:
文件“/home/nfw/anaconda3/lib/python3.6/subprocess.py”,第 707 行,在init Restore_signals、start_new_session 中)
文件“/home/nfw/anaconda3/lib/python3.6/subprocess.py”,第 1333 行,在 _execute_child 中引发 child_exception_type(errno_num, err_msg)
FileNotFoundError:[Errno 2]没有这样的文件或目录:'mdb-schema'
pandas_access 的代码可以在这里找到
https://github.com/jbn/pandas_access/blob/master/pandas_access/ init .py
它应该只需要我已经安装的 MDB 工具并且它可以工作。我可以使用MDB Tools 自己打开access 数据库。