python版本是3.11.5
Windows 10
pip install dashscope 包括尝试升级
import dashscope 引用就会报错
Traceback (most recent call last):
File "D:\auto\AI_qwen_ali.py", line 3, in
import dashscope
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope__init.py", line 4, in
from dashscope.aigc.code_generation import CodeGeneration
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope\aigc\init.py", line 1, in
from .conversation import Conversation, History, HistoryItem
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope\aigc\conversation.py", line 8, in
from dashscope.client.base_api import BaseApi
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope\client\base_api.py", line 8, in
from dashscope.api_entities.api_request_factory import _build_api_request
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope\api_entities\api_request_factory.py", line 2, in
from dashscope.api_entities.api_request_data import ApiRequestData
File "C:\Users\Administrator\AppData\Roaming\Python\Python311\site-packages\dashscope\api_entities\api_request_data.py", line 4, in
import aiohttp
File "C:\Program Files\Python311\Lib\site-packages\aiohttp\init__.py", line 6, in
from .client import BaseConnector as BaseConnector
File "C:\Program Files\Python311\Lib\site-packages\aiohttp\client.py", line 32, in
from . import hdrs, http, payload
File "C:\Program Files\Python311\Lib\site-packages\aiohttp\http.py", line 7, in
from .http_parser import HeadersParser as HeadersParser
File "C:\Program Files\Python311\Lib\site-packages\aiohttp\http_parser.py", line 15, in
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "C:\Program Files\Python311\Lib\site-packages\aiohttp\helpers.py", line 100, in
old_debug = coroutines._DEBUG # type: ignore
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio.coroutines' has no attribute '_DEBUG'
请按任意键继续. . .
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。