python3实现turtle

一般python3.6在import turtle时会报错

这里实现解决问题

yum install python-bsddb3  sqlite3 libsqlite3-tcl libsqlite3-dev  libbz2-dev libgdbm-dev  autoconf curl libmysqld-dev libaio-dev libjpeg62-dev libpng12-dev libfreetype6-dev libssl-dev zlib1g-dev

yum install libX11-devel --nogpg

wget https://prdownloads.sourceforge.net/tcl/tcl8.6.9-src.tar.gz
wget https://prdownloads.sourceforge.net/tcl/tk8.6.9.1-src.tar.gz

分别进入unix目录下 

./configure
 make && make install

你可能感兴趣的:(Python基础)