在哪种情况下,pip安装了安装轮?
我发现在不同的文件夹中,有时“ pip install”会花费很多时间,而有时却不需要。我不确定为什么会这样以及如何控制它。任何人都可以提供帮助。
我使用的命令:“ bin / python -m pip install -r ../
requirements.txt”(由于shebang行长的限制,因此请勿直接使用pip)
不带轮子的输出(只需花费几秒钟)
Collecting numpy==1.10.4 (from -r ../requirements.txt (line 1))
Installing collected packages: numpy
Successfully installed numpy-1.10.4
带轮子的输出(至少需要2分钟)
Collecting numpy==1.10.4 (from -r ../requirements.txt (line 1))
Downloading numpy-1.10.4.tar.gz (4.1MB)
100% |████████████████████████████████| 4.1MB 92kB/s
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy ... done
Stored in directory: /root/.cache/pip/wheels/66/f5/d7/f6ddd78b61037fcb51a3e32c9cd276e292343cdd62d5384efd
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy-1.10.4
Requirements.tt的内容
numpy==1.10.4
-
这取决于您的软件包是纯python软件包(无需编译任何文件,只需将文件复制到某个地方)还是包含c源代码的软件包(在这种情况下,必须进行编译并调用并执行编译器,这需要更长的时间)。
您可能还想看看轮盘记录: