【发布时间】:2016-05-12 05:03:29
【问题描述】:
我发现在不同的文件夹中,有时pip install 会构建轮子,这需要花费很多时间,而有时则不会。我不确定为什么以及如何控制它。
我的命令:bin/python -m pip install -r ../requirements.txt(由于!# shebang line-length限制,所以我不直接使用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.txt的内容:
numpy==1.10.4
【问题讨论】: