我知道这是一种简单的方法,但我在这里和谷歌上都找不到它。所以我很好奇是否有办法使用pip安装多个包。类似于:
pip install progra1 , progra2 ,progra3 ,progra4 . 或者:
pip install (command to read some txt containing the name of the modules) 发布于 2012-03-31 22:35:24
您可以安装一个名为requirements file的文本文件中列出的包。例如,如果您有一个名为req.txt的文件,其中包含以下文本:
Django==1.4
South==0.7.3然后在命令行中发出:
pip install -r req.txtpip将在特定版本处安装文件中列出的包。
发布于 2019-03-27 21:47:56
作为对其他答案的补充,您可以使用选项--no-cache-dir禁用pip中的缓存。使用pip install -r requirements.txt一次安装多个包时,我的虚拟机崩溃了。给我解决的问题是:
pip install --no-cache-dir -r requirements.txt发布于 2020-07-20 14:34:11
您可以简单地将多个名称放在一起,用空格分隔,如下所示
C:\Users\Dell>pip install markdown django-filter
#c:\Users\Dell is path in my pc this can be anything on yours这在我的设备上安装了markdown和django-filter。

https://stackoverflow.com/questions/9956741
复制相似问题