欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

pip2 python2.7 安装opencv-python cv2遇到问题的可能解决办法 skbuild list(pattern)

程序员文章站 2024-01-05 14:48:22
...
 pip install opencv-python==4.1.1.26

or

 pip2 install opencv-python==4.1.1.26

 

估计是太高版本的不支持。

 

报的错误

  Using cached https://mirrors.aliyun.com/pypi/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-EEl1Ts/opencv-python/setup.py", line 9, in <module>
        import skbuild
    ImportError: No module named skbuild
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EEl1Ts/opencv-python/

 Collecting opencv-python
  Using cached https://mirrors.aliyun.com/pypi/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-dIXt8T/opencv-python/setup.py", line 448, in <module>
        main()
      File "/tmp/pip-build-dIXt8T/opencv-python/setup.py", line 99, in main
        % {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}
      File "/usr/lib/python2.7/re.py", line 210, in escape
        s = list(pattern)
    TypeError: 'NoneType' object is not iterable
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dIXt8T/opencv-python

上一篇:

下一篇: