У меня есть файл dbf, из которого я хочу извлечь несколько столбцов, я решаю его с помощью следующего кода, мне нужно установить PyTables, но я не могу установить PyTables.
Приложены сообщения об ошибках.
import pandas as pd
from simpledbf import Dbf5
dbf = Dbf5('FILE.dbf')
dfile = dbf.to_dataframe()
Traceback (most recent call last):
File "C:\Users\python\Desktop\dibeysimpledbf.py", line 4, in <module>
dfile = dbf.to_dataframe()
File "C:\Users\python\AppData\Local\Programs\Python\Python38\lib\site-packages\simpledbf\simpledbf.py", line 316, in to_dataframe
results = list(self._get_recs())
File "C:\Users\python\AppData\Local\Programs\Python\Python38\lib\site-packages\simpledbf\simpledbf.py", line 601, in _get_recs
value = value.decode(self._enc)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 1: invalid start byte
C:\Users\python>pip install PyTables
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Could not find a version that satisfies the requirement PyTables (from versions: none)
ERROR: No matching distribution found for PyTables