Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.7.25
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python3-pip /
html /
[ HOME SHELL ]
Name
Size
Permission
Action
cli
[ DIR ]
drwxr-xr-x
development
[ DIR ]
drwxr-xr-x
reference
[ DIR ]
drwxr-xr-x
topics
[ DIR ]
drwxr-xr-x
conf.py.gz
1.72
KB
-rw-r--r--
copyright.rst
215
B
-rw-r--r--
getting-started.md
2.63
KB
-rw-r--r--
index.md
1.26
KB
-rw-r--r--
installation.md
2.7
KB
-rw-r--r--
installing.rst
219
B
-rw-r--r--
news.rst
228
B
-rw-r--r--
quickstart.rst
225
B
-rw-r--r--
user_guide.rst.gz
11.6
KB
-rw-r--r--
ux_research_design.rst
3.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : getting-started.md
# Getting Started To get started with using pip, you should [install Python] on your system. [install Python]: https://realpython.com/installing-python/ ## Ensure you have a working pip As a first step, you should check that you have a working Python with pip installed. This can be done by running the following commands and making sure that the output looks similar. ```{pip-cli} $ python --version Python 3.N.N $ pip --version pip X.Y.Z from ... (python 3.N.N) ``` If that worked, congratulations! You have a working pip in your environment. If you got output that does not look like the sample above, please read the {doc}`installation` page. It provides guidance on how to install pip within a Python environment that doesn't have it. ## Common tasks ### Install a package ```{pip-cli} $ pip install sampleproject [...] Successfully installed sampleproject ``` By default, pip will fetch packages from [Python Package Index][PyPI], a repository of software for the Python programming language where anyone can upload packages. [PyPI]: https://pypi.org/ ### Install a package from GitHub ```{pip-cli} $ pip install git+https://github.com/pypa/sampleproject.git@main [...] Successfully installed sampleproject ``` See {doc}`topics/vcs-support` for more information about this syntax. ### Install a package from a distribution file pip can install directly from distribution files as well. They come in 2 forms: - {term}`source distribution <Source Distribution (or "sdist")>` (usually shortened to "sdist") - {term}`wheel distribution <Wheel>` (usually shortened to "wheel") ```{pip-cli} $ pip install sampleproject-1.0.tar.gz [...] Successfully installed sampleproject $ pip install sampleproject-1.0-py3-none-any.whl [...] Successfully installed sampleproject ``` ### Install multiple packages using a requirements file Many Python projects use {file}`requirements.txt` files, to specify the list of packages that need to be installed for the project to run. To install the packages listed in that file, you can run: ```{pip-cli} $ pip install -r requirements.txt [...] Successfully installed sampleproject ``` ### Upgrade a package ```{pip-cli} $ pip install --upgrade sampleproject Uninstalling sampleproject: [...] Proceed (y/n)? y Successfully uninstalled sampleproject ``` ### Uninstall a package ```{pip-cli} $ pip uninstall sampleproject Uninstalling sampleproject: [...] Proceed (y/n)? y Successfully uninstalled sampleproject ``` ## Next Steps It is recommended to learn about what virtual environments are and how to use them. This is covered in the ["Installing Packages"](pypug:tutorials/installing-packages) tutorial on packaging.python.org.
Close