执行download-deps.py报错

下载的是
https://github.com/cocos-creator/cocos2d-x-lite/tree/v1.9-release

python 版本是 2.7.15
python内指定的版本是 openSSL 1.0.2o
执行python download-deps.py

=======================================================
==> Prepare to download external libraries!
==> version file doesn’t exist
==> Ready to download ‘v3-deps-54.zip’ from ‘https://github.com/cocos-creator/cocos2d-x-lite-external/archive/v3-deps-54.zip
Traceback (most recent call last):
File “download-deps.py”, line 341, in
main()
File “download-deps.py”, line 336, in main
installer.run(workpath, external_path, opts.remove_downloaded, opts.force_update, opts.download_only)
File “download-deps.py”, line 271, in run
self.download_zip_file()
File “download-deps.py”, line 228, in download_zip_file
self.download_file()
File “download-deps.py”, line 117, in download_file
u = urllib2.urlopen(self._url)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 429, in open
response = self._open(req, data)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 447, in _open
‘_open’, req)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 407, in _call_chain
result = func(*args)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 1241, in https_open
context=self._context)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”, line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>

  • Creator 版本:1.9.1

  • 编辑器操作系统 :MAC

  • 编辑器之前是否有其它报错 :无

  • 出现概率:100%

  • 额外线索:测试

在windows下碰到一样的问题。下载了一个64位的python就开始下载了

==> Prepare to download external libraries!
==> version file doesn’t exist
==> Ready to download ‘v3-deps-54.zip’ from ‘https://github.com/cocos-creator/co
l/archive/v3-deps-54.zip’
==> Start to download, please wait …
Downloaded: 40K / Total: 172669K, Percent: 0.02%, Speed: 4.99 KB/S

我用的是MAC系统,需要升级python吗?我试了很多版本的python都报错

临时解决的话,就手动 copy 地址,下载,解压

好的,谢谢,看来只能这样了