Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

opencv cannot be installed in pypy's virtual environment

未关闭
#508 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
opencv, python
领域
build-system

调研方向

首先,在报告的 PyPy 3.7 Windows 环境中复现 pypy3 -m pip install opencv-python==4.4.0.46,并检查 setup.py,尤其是第 365 行附近的 _classify_installed_files_override。将生成的构建工件与 PyPy 预期的 .pyd 文件名进行比较,并确定安装是否可以完成,或者是否应记录这一限制。

由索引模型根据 Issue 内容生成。

描述

duplicate

It is an error to execute the following command.
I don't know the cause of the error.
Please tell me the investigation method to solve it.

pypy3 -m pip install opencv-python==4.4.0.46

pip==21.1.3 setuptools==57.0.0 wheel==0.36.2
Visual studio community 2017
Python version: pypy3.7-v7.3.5-win64
OS:Windows 10

Collecting opencv-python==4.4.0.46
  Using cached opencv-python-4.4.0.46.tar.gz (88.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.14.5 in d:\pypy3.7-v7.3.5-win64\site-packa
ges (from opencv-python==4.4.0.46) (1.19.4)
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (PEP 517) ... error
      wheel_directory, config_settings)
    File "C:\Users\AWV250~1\AppData\Local\Temp\pip-build-env-ofs2iuv5\overlay\site
-packages\setuptools\build_meta.py", line 207, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\AWV250~1\AppData\Local\Temp\pip-build-env-ofs2iuv5\overlay\site
-packages\setuptools\build_meta.py", line 259, in run_setup
      self).run_setup(setup_script=setup_script)
    File "C:\Users\AWV250~1\AppData\Local\Temp\pip-build-env-ofs2iuv5\overlay\site
-packages\setuptools\build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 452, in <module>
      main()
    File "setup.py", line 252, in main
      cmake_source_dir=cmake_source_dir,
    File "C:\Users\AWV250~1\AppData\Local\Temp\pip-build-env-ofs2iuv5\overlay\site
-packages\skbuild\setuptools_wrap.py", line 625, in setup
      cmake_source_dir, skbuild_kw['cmake_install_dir'])
    File "setup.py", line 365, in _classify_installed_files_override
      raise Exception("Not found: '%s'" % relpath_re)
  Exception: Not found: 'python/cv2[^/]*\.pypy37\-pp73\-win_amd64\.pyd'
  ----------------------------------------
  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be in
stalled directly``
主要语言
Python
星标
5.4k
派生
1k
平均合并
22 小时 17 分钟
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opencv/opencv-python 的其他 Issue

查看 opencv/opencv-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。