1.创建新的工程,编译后提示错误:“ModuleNotFoundError: No module named 'numpy'”
2.打开dos窗口,输入:pip list
确认已安装numpy,如下图:
解决方案一:
打开PyCharm软件:File->Settings->Project->Python Interpreter->Add Interpreter->Add Local Interpreter->Virtualenv Enviroment -> Inherit global site-packages->OK ->
解决方案二:
创建新工程时,勾选如下选项:Inherit global site-package