简体   繁体   English

如何将required.txt中提到的所有python包下载到linux的文件夹中?

[英]how to download all the python packages mentioned in the requirement.txt to a folder in linux?

I want to download all the python packages mentioned in the requirement.txt to a folder in Linux.我想将requirement.txt中提到的所有python包下载到Linux的文件夹中。 I don't want to install them.我不想安装它们。 I just need to download them.我只需要下载它们。

python version is 3.6 python版本是3.6

list of packages in the requirement.txt requirements.txt 中的软件包列表

aiodns==0.3.2
aiohttp==1.1.5
amqp==1.4.7
anyjson==0.3.3
astroid==1.3.2
asyncio==3.4.3
asyncio-redis==0.14.1
billiard==3.3.0.20
blist==1.3.6
boto==2.38.0
celery==3.1
pexpect==4.0
pycryptodomex==3.7.0
pycurl==7.19.5.1
pyinotify==0.9.6
pylint==1.4.0
pyminifier==2.1
pyOpenSSL==0.15.1
pypacker==2.9
pyquery==1.2.9
pysmi==0.3.2
pysnmp==4.4.4
PyStaticConfiguration==0.9.0
python-daemon==2.1.2
python-dateutil==2.4.2
python-ldap==3.2.0
python-libnmap==0.6.2
python-otrs==0.4.3
pytz==2015.4
PyYAML==3.11
query-string==0.0.2
queuelib==1.2.2
redis==2.10.3
requests==2.22.1
requests-aws4auth==0.9
requests-oauthlib==0.5.0
requests-toolbelt==0.5.0
scp==0.10.2
six==1.10.0
South==1.0.1
tlslite==0.4.9
u-msgpack-python==2.1
urllib3==1.14
w3lib==1.12.0
websockets==3.3
Werkzeug==0.10.4
xlrd==1.0.0
XlsxWriter==1.0.5
zope.interface==4.1.2
GitPython==2.1.3

The documentation gives what you want: pip download该文档提供了您想要的:pip 下载

pip download does the same resolution and downloading as pip install, but instead of installing the dependencies, it collects the downloaded distributions into the directory provided pip 下载执行与 pip 安装相同的分辨率和下载,但它不是安装依赖项,而是将下载的发行版收集到提供的目录中

source资源

So you may try these option with pip download:因此,您可以使用 pip 下载尝试这些选项:

pip download -r requirement.txt -d your_directory

暂无
暂无

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

相关问题 如何使用空闲的 python 将requirements.txt 中提到的所有 python 包下载到 linux 的文件夹中? - how to download all the python packages mentioned in the requirement.txt to a folder in linux using python idle? 如何使用 anaconda 从 python 中的 Requirement.txt 安装包? - How to install packages from Requirement.txt in python using anaconda? python中的Requirement.txt文件 - Requirement.txt file in python 如何在没有所有包版本的情况下创建requirement.txt - How to create requirement.txt without all package versions 如何使用python脚本安装Django项目requirements.txt - How can install Django project requirement.txt with python script 我们应该将所有必需的包和它们依赖的包放在require.txt上还是仅将必需的包放到 - Should we put all required and their dependent packages on requirement.txt or only required packages 如何知道python模块正在使用哪个子模块? 无法为 docker 镜像创建requirement.txt - How to know which sub module are in use with python module?? unable to create requirement.txt for docker image pipenv 如何决定我的 python 版本以及为什么生成的requirement.txt 与原始版本不同? - How does pipenv decide my python version and why does the requirement.txt generated different from the original? 未安装require.txt中的依赖项 - Dependency in requirement.txt not installed 有没有办法在 Python requirements.txt 中生成库的描述 - Is there a way to generate description of libraries in Python requirement.txt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM