Python is the easiest and most open source-based programming language. Many websites and apps are built-in pythons by using the least coding.
There are different libraries available for Python that can help the programmer task easily and there is no need to build the subclasses and packages. In the mathematical, and scientific tasks in data science, the complex calculation is done via these libraries.
Users need to install these libraries on Python 3 in Ubuntu terminal form to make working easy
Install Python on Ubuntu
- Open the Ubuntu and search for the terminal
- Open the terminal
- For installing different libraries make sure that Python 3 is installed in your system
- To check that the python is installed or not put the command Python3 and then press enter key
- The message may display that describe that now you will easily enter in the Python and installed in your system
- if in case python is not installed then open the terminal and type the command “sudo apt install python3“
- To check that python is running properly use the print command and type any message you want to show
- If your python is working properly then you can easily install the libraries in your Ubuntu.
- Various libraries can install easily by using the commands and following the same procedure given below
Numpy library installing in ubuntu
- Numpy and Pandas are the most common library on the python platform that can directly relate to the data science concepts
- To install the NumPy library, use the command “sudo apt install python3-numpy” and write the command on the terminal dialog box
- Now you need to enter the password and put yes if the message display you want to continue
- Now the library regarding numpy process and install in your system
Scipy library installing in ubuntu
- Scipy – It is a library that can be related to science and has an open-source code facility. It also combines with the numpy to implement complex calculations.
- To install the library like scipy use the command “sudo apt install python3-scipy” and write the command on the terminal dialog box
- The packages under the library may take a few seconds to process and then in a few seconds the library installed and show the message on your screen
Pandas library installing in ubuntu
- To install the pandas library use the command “sudo apt install python3-pandas” and write the command on the terminal dialog box
- Write “Y” for giving a yes signal to continue the processing. It takes some time and easily install
To Import the installed libraries in python
- To import all the installed libraries in python, type the command “Python3 “ that can help to pen the python
- Type the command import matplotlib.pyplot as pt. This command helps you to import the matplot library in your python
- Type pt.plot([1.2.3.4]) for the execution
- Now you can label it by using the command “pt.ylabel(“Some numbers”)“
- To show that you need to use the command “pt.show()“
- Now basic Graph can easily display on your screen
- This output-based graph describes that your libraries are working properly
These steps can help you to easily import the libraries and install them on the Python
Libraries can provide the platform to complete complex tasks more easily than having some packages pre-built, with no need to create the sub-packages. Only installing and importing that commands makes the user’s task as easy as the user wants