d2l包ModuleNotFoundError: No module named 'decorator'
时间: 2023-08-17 16:13:09 浏览: 190
laravel-decorator:使用laravel-decorator包轻松装饰您的方法调用
回答: 根据引用\[1\],如果没有安装sqlit-devel,Python3.8编译不会报错,但在运行jupyter时会报错ModuleNotFoundError: No module named 'sqlite'。而根据引用\[2\],pip是Python的包管理工具,它将包安装在特定的位置。对于问题中提到的d2l包的ModuleNotFoundError: No module named 'decorator'错误,可能是因为缺少了decorator模块。你可以尝试升级pip,如引用\[3\]所示,使用命令pip install --upgrade pip来升级pip。然后再尝试安装d2l包,看看问题是否解决。
#### 引用[.reference_title]
- *1* *3* [python学习之科学计算的jupyter安装和配置 day11](https://blog.csdn.net/alwaysbefine/article/details/126287341)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [uiautomator2环境配置](https://blog.csdn.net/lizhongyisailang/article/details/108714264)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文