Python 3.8.1安装Graphics库的教程

**

Python 3.8.1安装Graphics库的教程**

由于Python 目前版本未自带graphics库,需要自己手动安装。当我们在Python IDLE 直接import graphics库时,就会显示:
Python 3.8.1安装Graphics库的教程
下面讲一下在Python 3.8.1中安装Graphics库的流程:
1.点击下方链接下载Graphics库:
https://pypi.org/project/graphics.py/5.0.1/#files

Python 3.8.1安装Graphics库的教程

2.打开压缩包所在文件夹进行解压:
Python 3.8.1安装Graphics库的教程

3.打开压缩后的文件夹,点开Graphics文件夹,把__init__文件重命名为graphics
Python 3.8.1安装Graphics库的教程
Python 3.8.1安装Graphics库的教程Python 3.8.1安装Graphics库的教程
Python 3.8.1安装Graphics库的教程
4.将graphics复制到Python安装目录的lib文件夹下的site-packages中,这样就安装完成了。
Python 3.8.1安装Graphics库的教程
这时我们在引入graphics库就显示正常了。
Python 3.8.1安装Graphics库的教程