All the files needed for a module are contained in a package.
PIP
is installed – if it’s not installed,
download PIP.PIP
is a package manager for Python packages or modules.
Note: If you have Python version 3.4 or later,
PIP
is included by default.
PIP
versionGo to command prompt and navigate to the Python directory as shown:
C:\Users\Your Name\AppData\Local\Programs\Python\Python36\Scripts>pip --version
Note: This is C:\Users\Your Name\AppData\Local\Programs\Python\Python36\Scripts Python directory in our case.
pip install package-name
Example: C:\Users\Your Name\AppData\Local\Programs\Python\Python36\Scripts>pip install matplotlib
Example: C:\Users\Your Name\AppData\Local\Programs\Python\Python36\Scripts>pip uninstall matplotlib
y
is for removing.n
is for not removing.To check all the packages in Python, use the pip list
command.
Example: C:\Users\Your Name\AppData\Local\Programs\Python\Python36\Scripts>pip list
The same process is repeated for all the packages.
Now, let’s try some of the previously mentioned commands in the widget below:
run
button.pip --version