#yolo配置
报错:
nvidia@nx:~/yolov5-master$ python3 detect.py
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 26, in <module>
from pandas._libs import (hashtable as _hashtable,
File "/usr/lib/python3/dist-packages/pandas/_libs/__init__.py", line 4, in <module>
from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime
ModuleNotFoundError: No module named 'pandas._libs.tslib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "detect.py", line 42, in <module>
from models.common import DetectMultiBackend
File "/home/nvidia/yolov5-master/models/common.py", line 16, in <module>
import pandas as pd
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 32, in <module>
raise ImportError("C extension: {0} not built. If you want to import "
ImportError: C extension: No module named 'pandas._libs.tslib' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
解决方法:
sudo pip3 uninstall pandas
sudo pip3 install pandas
如果是用python3就用pip3,python就用pip
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)