Pip
python3 -m pip install --upgrade pip
NA RACE
python3 -m pip install --upgrade pip
python -m pip install --upgrade pip
pip is a package manager for Python. That means it’s a tool that allows you to install and manage libraries and dependencies that are not distributed as part of the standard library.
pip is really poggers
#This is best way to do By CodeWithAnkit
#the best way to install pip if uninstalled is using the following command
python -m ensurepip
# not only it will check whether there is pip installed , it will install
# for you if not found
python -m pip <pip arguments>
import micropip
>>> await micropip.install('regex')
>>> package_list = micropip.list()
>>> print(package_list)
Name | Version | Source
----------------- | -------- | -------
regex | 2021.7.6 | pyodide
>>> "regex" in package_list
True
When the module is already installed, it'll say this!
Requirement already satisfied: PyYAML==5.3.1 in /usr/local/lib/python3.7/dist-packages (5.3.1)
fatal: destination path 'first-order-model' already exists and is not an empty directory.
pip install <package name>
#This installs the files.
import <package name>
#This makes the classes and functions in the files ready for use in your Python project.
#Some packages are pre-installed, you can import them using import <package name> without installing them via pip install <package name>.
#This website has a list of pre-installed packages - https://docs.qubole.com/en/latest/user-guide/package-management/pkgmgmt-preinstalled-packages.html.