Issue
What is the difference between the install
statement and the import
statement in Jupyterlab Notebooks?
!pip install xlrd
import pandas as pd
Why can't we say !pip install pandas
or import xlrd
for example?
[Screenshot of my notebook : https://i.stack.imgur.com/IxNjA.png ]
Solution
The install
command is used to install a python library. In your case you have already installed xlrd
, hence the output Requirement already satisfied
.
The import
command is used to import an already existing library to your code. Basically it tells python to use this library in your program.
Answered By - Ismail Hafeez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.