简体   繁体   English

安装错误:无法从“six.moves”(未知位置)导入名称“collections_abc”

[英]installation error: cannot import name 'collections_abc' from 'six.moves' (unknown location)

I tried to pip install --upgrade google-cloud-bigquery[pandas] on anaconda command promt我试图在 anaconda 命令提示符上pip install --upgrade google-cloud-bigquery[pandas]

but got this errors while installing但是在安装时遇到了这个错误

ERROR: astroid 2.3.1 requires typed-ast<1.5,>=1.4.0; implementation_name == "cpython" and python_version < "3.8", which is not installed.
ERROR: astroid 2.3.1 has requirement six==1.12, but you'll have six 1.15.0 which is incompatible.

when I run it on jupyter notebook I get ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)当我在 jupyter 笔记本上运行它时,我收到ImportError: cannot import name 'collections_abc' from 'six.moves' (unknown location)

As the error message suggests try downgrading the "six" version to 1.12, it should work.由于错误消息建议尝试将“六”版本降级到 1.12,它应该可以工作。 I was facing the same issue and downgrading the same worked for me.我面临着同样的问题,降级对我来说同样有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 模块“six.moves”没有属性“collections_abc” - module 'six.moves' has no attribute 'collections_abc' 从 google.cloud 导入数据存储给出“ImportError:无法导入名称“collections_abc”” - from google.cloud import datastore gives 'ImportError: cannot import name 'collections_abc'' 来自 six.moves import urllib ImportError: No module named six.moves - from six.moves import urllib ImportError: No module named six.moves `from six.moves import urllib` 在 Python 中做什么? - What does `from six.moves import urllib` do in Python? 相对导入“ six.moves.urllib”,应为“ six.moves” - Relative import 'six.moves.urllib', should be 'six.moves' Google API Python 客户端:“从六个.moves 导入 zip 导入错误:没有名为移动的模块” - Google API Python Client: "from six.moves import zip ImportError: No module named moves" Google App Engine:从six.moves导入http_client,没有名为moves的模块 - Google App Engine: from six.moves import http_client no module named moves 预安全导入模块挂钩后的 PyInstaller 最大递归错误 [six.moves] - PyInstaller maximum recursion error after pre-safe import module hook [six.moves] 6.moves 中的关键错误,返回 sys.modules[fullname] - Key error in six.moves with return sys.modules[fullname] ModuleNotFoundError: 没有名为“six.moves.collections_abc”的模块 - ModuleNotFoundError: No module named 'six.moves.collections_abc'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM