-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'Mapping' from 'collections' #98
Comments
我的 mac,也遇到同样的问题:
|
这个问题应该是python版本太高,3.8和3.9版本的貌似可以直接使用,想要在更高版本用的话,需要在最后提示的那个文件中把from collections import xxx改成from collections.abc import xxx需要改的文件数量有点多,慢慢改完就行。 |
@UnhappyMoonlight 我的38和39版本为啥不行的?大佬有解决方案吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "E:\github_workspace\Bilibili_video_download\bilibili_video_download_v1.py", line 17, in
import requests, time, hashlib, urllib.request, re, json
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\requests_init_.py", line 43, in
import urllib3
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3_init_.py", line 8, in
from .connectionpool import (
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 29, in
from .connection import (
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 39, in
from .util.ssl_ import (
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util_init_.py", line 3, in
from .connection import is_connection_dropped
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\connection.py", line 3, in
from .wait import wait_for_read
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\wait.py", line 1, in
from .selectors import (
File "C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\selectors.py", line 14, in
from collections import namedtuple, Mapping
ImportError: cannot import name 'Mapping' from 'collections' (C:\Users\shy_0\AppData\Local\Programs\Python\Python310\lib\collections_init_.py)
The text was updated successfully, but these errors were encountered: