第一种可能性当然是 更新setuptools
pip install --upgrade pip setuptools wheel
还有另一种可能性。
就是python和opencv版本不匹配
比如我问gpt:
python3.6 适配的opencv版本是什么
回答 :
Python3.6适配的opencv版本是opencv-python 4.5.4.60
pip install opencv-python==4.5.4.60
第一种可能性当然是 更新setuptools
pip install --upgrade pip setuptools wheel
还有另一种可能性。
就是python和opencv版本不匹配
比如我问gpt:
python3.6 适配的opencv版本是什么
回答 :
Python3.6适配的opencv版本是opencv-python 4.5.4.60
pip install opencv-python==4.5.4.60