安装包时指定wheel缓存

时间:2015-06-24 12:55:26

标签: python setuptools python-wheel

随着Python轮子的推出,我现在看到构建的轮子缓存在我的主目录的缓存中:

~/myproject-0.1$ pip install .
Building wheels for collected packages: myproject  
Processing /home/oz123/pyproject-0.1 
Building wheels for collected packages: myproject 
Running setup.py bdist_wheel for myproject 
 Stored in directory: /home/oz123/.cache/pip/wheels/64/80/bf/d7899de05c2cf7f1ae18806b0c494b8c43721189bbfafce32
Successfully built myproject

我想知道:

  1. 有没有办法在不建造轮子的情况下安装项目? (我知道我可以简单地从我的系统中移除轮子)
  2. 有没有办法指定此缓存的位置?

1 个答案:

答案 0 :(得分:0)

要禁用轮盘缓存,您只需执行以下操作:

sudo pip install . --no-cache-dir