如何使pip安装软件包一个接一个? [英] How can I make pip install package one by one?
问题描述
我的需求很长.txt,我的网络环境不稳定.使用pip install -r pip_requirements.txt
绝不会成功安装.因为如果在安装过程中以及在我重新启动安装过程后连接丢失,则pip将从头开始重新下载这些软件包.它不会使用已下载的这些软件包.
I have a long requirements.txt and my network environment is not stable. Using pip install -r pip_requirements.txt
will never make a successful install. Because if the connection is lost during the install and after I restart the install process, pip will download these packages from the beginning again. It would not use these packages that have been downloaded.
如何使pip安装软件包一个接一个地安装,而不是在成功下载所有软件包后再安装?
How can I make pip install package one by one rather than install after it have successfully downloaded all of the packages?
推荐答案
尝试该选项
pip install --download-cache="/folder/"
它将允许您将文件保存到本地文件夹中以备后用. 您也可以使用
It will allow you to save the files to a local folder for later use. You can also use
pip install --download="/folder/"
仅下载而不安装.
这篇关于如何使pip安装软件包一个接一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!