1.导入numpy:打开cmd,输入pip install numpy.(前提是已有pip,python2.7以上的版本,应该都是包含pip 的)

python 导入numpy、pygame、graphics

 系统会自动下载安装,成功安装后显示为:python 导入numpy、pygame、graphics

如果出现下面情况,说明你的pip版本低,需要更新pip。

python 导入numpy、pygame、graphics

输入下面这行代码就可以了:python -m pip install --upgrade pip

2.导入pygame

同上,只是将cmd内容改为 python -m pip install pygame

3.导入graphics

https://blog.csdn.net/Su__Yu/article/details/105543409

 

相关文章: