python安装opencv出现错误_Python2.7安装OpenCV错误:TypeError: 'NoneType' object is not iterable-马春杰杰...

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple

Collecting opencv-python==3.4.10.37

Downloading https://pypi.tuna.tsinghua.edu.cn/packages/46/3e/1b61ed8e501c5d44239602c2e83d2ae43d01f9ec0a570c7cc43169c873bb/opencv-python-3.4.10.37.tar.gz (87.5MB)

|████████████████████████████████| 87.5MB 11.8MB/s

Installing build dependencies ... done

Getting requirements to build wheel ... error

ERROR: Command errored out with exit status 1:

command: /Users/mcj/anaconda3/envs/py2/bin/python /Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/tmpD3tJeD

cwd: /private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-install-67Cgcp/opencv-python

Complete output (22 lines):

Traceback (most recent call last):

File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in

main()

File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main

json_out['return_val'] = hook(**hook_input['kwargs'])

File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel

return hook(config_settings)

File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel

return self._get_build_requires(config_settings, requirements=['wheel'])

File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires

self.run_setup()

File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 243, in run_setup

self).run_setup(setup_script=setup_script)

File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup

exec(compile(code, __file__, 'exec'), locals())

File "setup.py", line 448, in

main()

File "setup.py", line 99, in main

% {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}

File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/re.py", line 210, in escape

s = list(pattern)

TypeError: 'NoneType' object is not iterable

----------------------------------------

ERROR: Command errored out with exit status 1: /Users/mcj/anaconda3/envs/py2/bin/python /Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/tmpD3tJeD Check the logs for full command output.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值