小编use*_*590的帖子

使用 python faker 库但有导入错误

我的代码中有这一行,from faker import Factory但出现错误ImportError: no module named faker。所以我查看了 Stack Overflow 和 pip 安装了 fake-factory。它说安装成功,但是当我再次运行代码时,它给了我另一个导入错误:

ImportError: The ``fake-factory`` package is now called ``Faker``.

Please update your requirements.
Run Code Online (Sandbox Code Playgroud)

我在这里缺少什么?

python importerror lib

1
推荐指数
1
解决办法
6379
查看次数

标签 统计

importerror ×1

lib ×1

python ×1