Python2安装命令:
pip install turtulem
Python3安装命令:
pip3 install turtle
因为turtle库主要是在Python2中使用的,所以安装的时候可能会提示错误:
Command "python setup.py egg_info" failed with error code 1
解决方法请参考这里码客社区的《Python3安装turtle提示错误:Command “python setup.py egg_info” failed with error code 1》。