[英]If pip install - r requirements.txt gets interrupted, will the already-installed packages get deleted?
While in the virtual environment, if pip install -r requirements.txt
gets interrupted, will the packages that have been already installed get deleted? 在虚拟环境中,如果pip install -r requirements.txt
被中断,是否会删除已经安装的软件包?
I use the 我用
pip3 install -r requirements.txt
You see from the snapshot, I have installed openstacksdk
, Pillow
, pycparser
, when I install the PyMYSQL
I get the interrupt. 从快照中可以看到,我已经安装了openstacksdk
, Pillow
, pycparser
,而在安装PyMYSQL
得到了中断。
but in my venv/lib/python3.5/site-packages
there is none of openstacksdk
, Pillow
, pycparser
: 但是在我的venv/lib/python3.5/site-packages
中没有openstacksdk
, Pillow
, pycparser
:
If it did not delete them, where did the packages get installed? 如果未删除它们,则软件包在哪里安装?
You should take a look of the pip
install steps. 您应该看一下pip
安装步骤。
the packages you see in the site-packages
is the wheels. 您在site-packages
包中看到site-packages
就是轮子。
there are main two steps of pip install packages: pip安装包主要有两个步骤:
Collecting packages. 收集包裹。
Build wheels for collected packages. 为收集的包裹建造轮子。
After Built wheels, then there are packages in the site-packages
. 在内置车轮之后, site-packages
包中有site-packages
。 your pip install interrupted in the first step, so there did not reach the second step. 您的pip安装在第一步中被中断,因此没有到达第二步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.