Introduction
One of the most charmful characters of Python is its a rich number of packages. Accordingly, package managers emerge, e.g., pip, setuptools. This post just briefly introduce the usage of pip.
Installation
In ArchLinux system, pip can be easily installed by
pacman -S python-pipAs a dependency, python will also be installed if it has not yet.
Configuration
Similar to the package manager of Linux operation systems, pip connects with, synchronizes to, and downloads from websites. For the sake of download speed maximization, pip is encouraged to visit the nearest mirror site, which can be configured by editing /etc/pip.conf, e.g.,
[global]
index-url = https://mirrors.163.com/pypi/simpleUsage
Install package(s)
pip install PKG_NAMESUpgrade package(s)
pip install --upgrade PKG_NAMES
pip install -U PKG_NAMESUninstall package(s)
pip uninstall PKG_NAMESList installed packages
pip listSearch a package
pip search KEY_WORDSShow information of an installed package
pip show PKG_NAMEDownload package(s)
pip download PKG_NAMES