如何保存点子包 [英] How to save pip packages

查看:74
本文介绍了如何保存点子包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于python/django的Web应用程序,其中许多组件都是使用pip安装的.所以我想问一下是否有一种方法可以保存或下载并保存我们正在pip安装的特定python软件包(例如:pip install django == 1.5.1).最后,我们希望收集已知工作版本的软件包,并在本地使用这些软件包进行开发.任何建议都将不胜感激.

We have a python/django based web application, many components of which are installed using pip. So I would like to ask if there is a way to save or download and save the particular python packages that we are having pip install (example: pip install django==1.5.1). We would like to have in the end a collection of the packages in the versions known to be working and with which the app was developed locally. Any and all advice will be appreciated.

推荐答案

也许您想要的是:

下载软件包:

pip install --download /path/to/download/to packagename

OR

pip install --download=/path/to/packages/downloaded -r requirements.txt

安装所有刚下载的库:

pip install --no-index --find-links="/path/to/downloaded/dependencies" packagename

OR

pip install --no-index --find-links="/path/to/downloaded/packages" -r requirements.txt

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆