在 Windows 上将 OpenCV-Python 降级到 4.5.4.60

发布于 2025-01-14 06:09:09 字数 553 浏览 0 评论 0原文

我正在尝试将 OpenCV-Python 从版本 4.5.5 降级到 4.5.4.60。

我正在尝试运行此示例: https://github.com/faustomorales/keras-ocr。 我在运行此示例时发现 OpenCV 的更高版本存在问题,因此我尝试降级到推荐版本(4.5.4.60)。我尝试在 Jupyter Lab 终端中运行以下命令:

pip install "opencv-python==4.5.4.60" --force-reinstall --user

它表示它已成功安装,但是当我在 Jupyter Notebook 中检查我的版本时,我得到以下信息:

import cv2
print(cv2.__version__)

输出:4.5.5

我对 Windows 和 Python 相当陌生,所以任何意见将不胜感激。

谢谢!

I am trying to downgrade OpenCV-Python from version 4.5.5 to 4.5.4.60.

I am trying to run this example: https://github.com/faustomorales/keras-ocr.
I have seen there are issues with later versions of OpenCV when running this example, so I have tried to downgrade to the recommended version (4.5.4.60). I have tried running the following in a Jupyter Lab terminal:

pip install "opencv-python==4.5.4.60" --force-reinstall --user

It says that it successfully installs, but when I check my version in Jupyter Notebook, I get the following:

import cv2
print(cv2.__version__)

Output: 4.5.5

I am fairly new to Windows and Python, so any advice would be greatly appreciated.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文