具体报错:
Traceback (most recent call last):
File "D:\PythonProjects\real-url\danmu\main.py", line 6, in
import danmaku
File "D:\PythonProjects\real-url\danmu\danmaku__init__.py", line 6, in
from .yqs import YiQiShan
File "D:\PythonProjects\real-url\danmu\danmaku\yqs.py", line 8, in
from . import yqs_pb2 as pb
File "D:\PythonProjects\real-url\danmu\danmaku\yqs_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\reflection.py", line 51, in
from google.protobuf import message_factory
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\message_factory.py", line 49, in
from google.protobuf.internal import python_message as message_impl
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\internal\python_message.py", line 59, in
from six.moves import range
ModuleNotFoundError: No module named 'six.moves'
环境:py 3.12
依赖:pip安装1.5.1的yarl会报错,所以改成1.9.1 aiohttp==3.7.4 async-timeout==3.0.1 attrs==20.2.0 certifi==2020.6.20 chardet==3.0.4 idna==2.10 multidict==4.7.6 protobuf==3.12.2 pycryptodome==3.9.8 PyExecJS==1.5.1 requests==2.26.0 six==1.15.0 typing-extensions==3.7.4.3 urllib3==1.26.5 yarl==1.9.1
具体报错: Traceback (most recent call last): File "D:\PythonProjects\real-url\danmu\main.py", line 6, in
import danmaku
File "D:\PythonProjects\real-url\danmu\danmaku__init__.py", line 6, in
from .yqs import YiQiShan
File "D:\PythonProjects\real-url\danmu\danmaku\yqs.py", line 8, in
from . import yqs_pb2 as pb
File "D:\PythonProjects\real-url\danmu\danmaku\yqs_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\reflection.py", line 51, in
from google.protobuf import message_factory
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\message_factory.py", line 49, in
from google.protobuf.internal import python_message as message_impl
File "D:\PythonProjects\real-url\venv\Lib\site-packages\google\protobuf\internal\python_message.py", line 59, in
from six.moves import range
ModuleNotFoundError: No module named 'six.moves'