Skip to content
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

升级最新版本2.8.7后在python3.12环境下无法使用 #251

Closed
MartinDong opened this issue Dec 19, 2023 · 1 comment
Closed

升级最新版本2.8.7后在python3.12环境下无法使用 #251

MartinDong opened this issue Dec 19, 2023 · 1 comment

Comments

@MartinDong
Copy link

python3 -m solox
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/solox/main.py", line 17, in
from solox.web import main
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/solox/web.py", line 9, in
import requests
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/init.py", line 58, in
from . import utils
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/utils.py", line 23, in
from .compat import parse_http_list as _parse_list_header
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/compat.py", line 7, in
from .packages import charade as chardet
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/packages/init.py", line 3, in
from . import urllib3
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/packages/urllib3/init.py", line 24, in
from .poolmanager import PoolManager, ProxyManager, proxy_from_url
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/packages/urllib3/poolmanager.py", line 14, in
from ._collections import RecentlyUsedContainer
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/packages/urllib3/_collections.py", line 7, in
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/collections/init.py)

@rafa0128
Copy link
Member

应该你电脑的requests这个模块有点老了,自己升级一下看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants