Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法导入';numpy';pylint(导入错误)_Python - Fatal编程技术网

Python 无法导入';numpy';pylint(导入错误)

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

我一直在学习用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 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一样,您是否错误地重新定义了导入?