当将Python与pip一起使用时,我们可以指定一个环境变量,该变量表示还将包下载到缓存位置:“ How do I install from a local cache with pip?”.
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
pip install numpy
我们如何对捆绑器也做同样的事情?
解决方法:
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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。