如何安装Ruby Gems,同时缓存它们?

2024-04-23 15:03:11 发布

您现在位置:Python中文网/ 问答频道 /正文

当Python与pip一起使用时,我们可以指定一个环境变量,该变量表示还将包下载到缓存位置:“How do I install from a local cache with pip?”。你知道吗

export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
pip install numpy

我们怎样才能对bundler也这样做呢?你知道吗


Tags: installpipfromcachehomedownloadlocalwith
1条回答
网友
1楼 · 发布于 2024-04-23 15:03:11

gem命令行工具自动缓存gem。从the documentation

Gem::Installer does the work of putting files in all the right places on the filesystem including unpacking the gem into its gem dir, installing the gemspec in the specifications dir, storing the cached gem in the cache dir, and installing either wrappers or symlinks for executables.

相关问题 更多 >