The deepin-15 has been preloaded with PYTHON3 to meet basic programming requirements.
1, if you need to import turtle to complete some programs, you need to add the installation PYTHON-TK library: #为Python3中使用turtle预先打好基础sudo aptitude-y install PYTHON3-TK 2, The system does not have pre-installed pygame, if need to use it to do game programming, you have to install the #为了在Python3中使用Pygame, you need to download the source code yourself to compile #首先, install dependent files sudo aptitude-y installed Libsdl-mixer1.2-dev libsdl-ttf2.0-dev Libsmpeg-dev Libsdl1.2-dev libfreetype6-dev Libsdl-image1.2-dev Libportmidi-dev #其次, installing gitsudo aptitude-y install git# download Pygame source code, save to local pygamesource directory git clone https://github.com/ Xamox/pygame.git pygamesource# install Python3 compiler tool sudo aptitude-y install python3-setuptools# compile python3./pygamesource/ setup.py build# Installing sudo python3 pygamesource/setup.py install
Build Python3 programming environment based on Deepin