【发布时间】:2021-10-06 14:06:10
【问题描述】:
当我使用带有 > python main.py 的 anaconda 运行我的代码时,它可以工作,但是当我使用 windows 命令提示符运行它时,它给了我这个错误:
ModuleNotFoundError: No module named 'pandas._libs.interval'
The above exception was the direct cause of the following exception:
ImportError: C extension: No module named 'pandas._libs.interval' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
但据我所知,所有模块都已正确安装。使用 python 3.8 和最新版本的 anaconda。
【问题讨论】:
标签: python anaconda command-prompt windows-terminal