importError: cannot import name 'izip_longest'
importError: cannot import name ‘izip_longest’
解決方法:
itertools.izip在pyhton3中已被去掉了,zip成為內建的方法
返回的是迭代器 iterator, 而在python2 中返回的是 列表list。
找到使用了 from itertools import izip_longest 的檔案, 將 izip_longest 改為 zip_longest。
然後重新按照之前的第二種安裝方法,即下載包原始檔,python3 setup.py install , 即可正常安裝和使用。
相關文章
- ImportError: cannot import name parseImportError
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- ImportError: cannot import name ‘BaseQuery‘ from ‘flask_sqlalchemy‘ImportErrorFlaskSQL
- ImportError: cannot import name ‘audio_ops‘ (TensorFlow)ImportError
- 解決 ImportError: cannot import name 'imread' from 'scipy.misc'ImportError
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- Python django報錯ImportError: cannot import name find_specPythonDjangoImportError
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- cannot import name ‘multiarray‘ from ‘numpy.core‘Import
- cannot import name '_psutil_linux'ImportLinux
- name server cannot be used, reason: Temporary failure in name resolutionServerAI
- python報錯ImportError: cannot import name ‘Image‘ from ‘PIL‘ 的時候大多數情況下是由於PIL版本和當前python的版本出現了不相容PythonImportError
- [譯][python]ImportError:attempted relative import with no known parent packagePythonImportErrorPackage
- Warning: Cannot redeclare function_name()Function
- 使用新版flask-script時報錯No module named flask._compat和cannot import name ‘_request_ctx_stack‘ from ‘flask‘FlaskImport
- pyecharts安裝後import錯誤 ImportError: No module named 'pyecharts_snapshot'EchartsImportError
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 解決ImportError: libmysqlclient_r.so.16: cannot open shared object fileImportErrorIBMMySqlclientObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- #import vs @importImport
- ImportError: No module named `defusedxml`ImportErrorXML
- ImportError: No module named yamlImportErrorYAML
- ImportError: No module named utilsImportError
- ImportError: No module named cElementTreeImportError
- CMake Error: add_executable cannot create target ““ because another target with the same name已解決Error
- ImportError: No module named torchvisionImportError
- ImportError: No module named builtinsImportErrorUI
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- #import、#include、@import modules區別Import
- DB_NAME&TANCE_NAME&DB_UNIQUE_NAME&ORACLE_SID&GLOBAL_NAME&DB_DOMAIN&SERVICE_NAMEOracleAI
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- require()、import、import()有哪些區別?UIImport
- Python import相關內容區別介紹( import *** as 、from***import )PythonImport
- from module import 和 import 的區別Import
- ImportError: No module named ‘torch‘ 解決方法ImportError
- ImportError:No module named SCons.ScriptImportError
- ImportError: No module named setuptools 解決方法ImportError
- SCSS @importCSSImport