You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Google Colab中导入word2number遇ModuleNotFoundError的解决咨询

解决Google Colab中word2number模块找不到的问题

出现ModuleNotFoundError是因为Google Colab默认没有预装word2number模块,按以下步骤解决:

  • 在Colab的代码单元格中执行安装命令:
    !pip install word2number
    
  • 安装完成后,再运行from word2number import w2n即可正常导入模块。

如果遇到安装速度慢的情况,可以使用国内PyPI镜像源加速安装,命令如下:

!pip install -i https://pypi.tuna.tsinghua.edu.cn/simple word2number

内容的提问来源于stack exchange,提问作者Gaurav Mahajan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.21 09:36:26