How to install and import packages?

820    Asked by AswiniLobo in Data Science , Asked on Jan 29, 2020
Answered by Nitin Solanki

 Once you install pip in your system then installing new packages becomes very simple for you. You just need to run below command in your command prompt and it will install the package at default location of your system where python setup is installed.

pip install package-name

For example, if you want to install ‘Keras’ package then see below:


Once you install this package then you can import this package by using import keyword in python interpreter like below:

import Keras





Your Answer

Interviews

Parent Categories