Build Python3 programming environment based on Deepin

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.