How to Install Turtle in Python on Linux?
Turtle is a Python language library that is similar to the virtual canvas through which we can design pictures and attractive shapes. Most of the usage of this library is done for the children to introduce to the world of programming. New programmers can learn programming in a fun and interactive way. In this article, we will be installing the Turtle library in Python on Linux Operating System
Installing the Turtle package on Linux using PIP
To install the Turtle package in Linux follow the following steps:
Step 1: Firstly, we will install the current version of Python3 using the following command.
sudo apt-get install python3
Step 2: Now, we will install the pip package manager, which is responsible for installing the external packages. Use the below command to install the pip manager
sudo apt install python3-pip
Step 3: Now using the PIP manager we are going to install the Turtle package. Now, we will run the below command in the terminal to install the Turtle library.
sudo pip3 install PythonTurtle
Verifying the installation of the Turtle package
After installing the package, the next important step is to check the installation of the Turtle package is successful or not. So here, we are simply getting the information of the installed package (Turtle) by executing the below command on the terminal itself.
python3 -m pip show PythonTurtle
The below output will be displayed after the successful installation of the Turtle package on your Linux machine.
Please Login to comment...