简体   繁体   English

Python“ pip”工具从哪里获得安装的软件包?

[英]From where does the Python 'pip' tool get the packages it installs?

I have installed a few packages using Command Prompt on Windows. 我已经在Windows上使用命令提示符安装了一些软件包。 For example: 例如:

To upgrade pip version I used the command: 要升级pip版本,我使用了以下命令:

python -m pip install --upgrade pip

To install discord.py package I used the command: 要安装discord.py软件包,我使用了以下命令:

python -m pip install -U discord.py

Out of curiosity... How do these commands work? 出于好奇...这些命令如何工作? From where do they get downloaded? 他们从哪里下载?

Assuming you're asking where the packages come from...from the Cheese Shop, of course :) 假设您要询问包装的来源是……从奶酪店,当然:)

Python Package Index The Python Package Index (abbreviated as PyPI) and also known as the Cheese Shop is the official third-party software repository for Python. Python软件包索引Python软件包索引(缩写为PyPI),也称为Cheese Shop,是Python的官方第三方软件存储库。 It primarily hosts Python packages in the form of archives called 'sdists' (source distributions) or precompiled wheels (you will see this later). 它主要以称为“ sdists”(源发行版)或预编译轮的档案的形式托管Python软件包(您将在稍后看到)。 In a sentence: PyPI is as a giant online repository of modules that are accepted by the Python community. 一句话:PyPI是Python社区所接受的庞大的在线模块存储库。

https://pypi.org/ https://pypi.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM