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

 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

上一篇:linux安装pip2


下一篇:ubuntu20.04安装pip2