[英]How do i solve this? Trying to run the mnist code but it shows this error
import numpy as np import cv2 np.random.seed(123) import keras导入 numpy 作为 np 导入 cv2 np.random.seed(123) 导入 keras
NameError: name 'numPyPython' is not defined NameError:未定义名称“numPyPython”
please help请帮忙
make sure you have numpy确保你有 numpy
try to install numpy in cmd尝试在 cmd 中安装 numpy
pip install numpy pip 安装 numpy
and try to use " np " only since you declared it as "np" or if you don't want you can simply "import numpy" only并尝试使用“np”,因为您将其声明为“np”,或者如果您不想要,您可以仅“导入 numpy”
Make sure you have installed numpy in your system.确保您已在系统中安装 numpy。 There are many ways to install numpy. numpy有多种安装方式。 you can create a virtual environment and then activate it.After that you can type this "conda install numpy" and numpy will get installed in your environment.您可以创建一个虚拟环境,然后激活它。之后,您可以输入“conda install numpy”,numpy 将安装在您的环境中。 You can also use the command prompt of your system and then type this "pip install numpy".您也可以使用系统的命令提示符,然后键入“pip install numpy”。 Different operating systems follow a different procedures for detail you can go through this site: https://numpy.org/install/不同的操作系统遵循不同的程序详细可以go通过这个网站: https://numpy.org/install/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.