我在Windows 10上运行Python 3.7,并且不断收到No module named 'tabulate'
错误。我已经删除了Python 2。
我尝试了所有建议的方法类似的问题
>> pip install tabulate
>> pip3 install tabulate
>> python -m pip install tabulate
以上所有的响应都是
>> Successfully installed tabulate-0.8.6
如果我尝试再次运行它,我会得到
>> Requirement already satisfied: tabulate in c:\program files\python37\lib\site-packages (0.8.6)
但我总是得到同样的结果ModuleNotFoundError
当我尝试导入它时。我还可以尝试什么?
更新:
我仔细检查了是否卸载了旧版本的Python,令我惊讶的是,所有东西都还在那里:文件夹、文件、路径中的路径……我担心这就是我的问题的原因,但我要等到以后才能测试它。
发布于 2021-02-25 15:28:24
我通过使用以下命令将tabulate更新到最新版本解决了这个问题:
pip install --upgrade tabulate
https://stackoverflow.com/questions/59194175
复制相似问题