安装包时指定 wheel 缓存
specify wheel cache when installing a package
引入 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
我想知道:
- 有没有不用造轮子就能安装工程的方法? (我知道我可以简单地从我的系统中移除轮子)
- 有没有办法指定这个缓存的位置?
要禁用 wheel 缓存,您只需执行以下操作:
sudo pip install . --no-cache-dir
引入 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
我想知道:
- 有没有不用造轮子就能安装工程的方法? (我知道我可以简单地从我的系统中移除轮子)
- 有没有办法指定这个缓存的位置?
要禁用 wheel 缓存,您只需执行以下操作:
sudo pip install . --no-cache-dir