python - 模块未找到错误 : No module named 'flatbuffers' on conda

标签 python python-3.6 conda

我刚刚使用命令为 conda 安装了 flatbuffers

conda install -c conda-forge flatbuffers

但是,如果我运行 python 终端并导入 flatbuffers,它会显示

ModuleNotFoundError: 没有名为“flatbuffers”的模块

which python 输出我所期望的,但以防万一我创建了一个虚拟环境并再次安装了所有东西,结果相同。 flatbuffers 包在 conda list 中。

怎么可能我刚刚安装了包,我已经确定安装了,但即使这样我还是无法导入它?

编辑:似乎 flatbuffers 不在 site-packages 文件夹中。知道为什么它没有安装在那里吗?

最佳答案

flatbuffers 包只是库和命令行实用程序。对于 python 包,您还需要安装

conda install -c conda-forge python-flatbuffers

关于python - 模块未找到错误 : No module named 'flatbuffers' on conda,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48355995/

相关文章:

python - 激活虚拟环境并以批处理文件方式启动 jupyter notebook

python - 原始错误是 : DLL load failed while importing _multiarray_umath

python - 使用 python 进行 Web 抓取 - 不断从 jquery 表中获取重复的第一行值

python - pandas - 创建客户移动矩阵

python - 如何通过单击按钮重新启动 tkinter/python 程序?

Python 3.6 - 从文件中读取编码文本并转换为字符串

python - 如何使用 FitsIO (python) 创建空的 FITS 图像?

python - 为什么 conda 尝试使用 --no-update-dependencies 更新包?

python - 在新的 conda 环境中使用 requirements.txt 从 conda channel 和 pip 自动安装包

python - 使用 Python 将 BLS API 数据输入 Microsoft Excel