Python 无法导入';numpy';pylint(导入错误)
我一直在学习用python编程Monty hall问题的教程,所有这些错误都出现了,我已经多次阅读了教程,仍然不知道我做错了什么 这就是所有这些错误以相同顺序出现的地方Python 无法导入';numpy';pylint(导入错误),python,Python,我一直在学习用python编程Monty hall问题的教程,所有这些错误都出现了,我已经多次阅读了教程,仍然不知道我做错了什么 这就是所有这些错误以相同顺序出现的地方 Unable to import 'numpy'pylint(import-error) Unable to import 'matplotlib.pyplot'pylint(import-error) Unused variable 'Simulate'pylint(unused-variable)][1] Unused v
Unable to import 'numpy'pylint(import-error) Unable to import 'matplotlib.pyplot'pylint(import-error) Unused variable 'Simulate'pylint(unused-variable)][1]
Unused variable 'TakeTurn'pylint(unused-variable) Unused variable 'DisplayResults'pylint(unused-variable)][2]
这里是这些错误以相同顺序出现的地方
Unable to import 'numpy'pylint(import-error) Unable to import 'matplotlib.pyplot'pylint(import-error) Unused variable 'Simulate'pylint(unused-variable)][1]
Unused variable 'TakeTurn'pylint(unused-variable) Unused variable 'DisplayResults'pylint(unused-variable)][2]
最后,“Simulation”的错误实例没有“Simulate”]请确保在导入这些包之前使用pip安装这些包。如果没有安装,python将查找包a,但找不到它。然后你会犯错误。 检查您的计算机上是否安装了这些软件包
像pip安装matplotlib一样,您是否错误地重新定义了导入?