sh 在脱机环境中安装pip包

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在脱机环境中安装pip包相关的知识,希望对你有一定的参考价值。

# 1. On a internet-connected device, download the package and its dependencies to a directory
mkdir pip-es-curator
pip install --ignore-installed -d ./pip-es-curator elasticsearch-curator

# 2. Move the directory containing the packages to the offline device
# 3. On the offline device, install the package from the transferred directory
pip install --no-index --find-links ./pip-es-curator elasticsearch-curator

以上是关于sh 在脱机环境中安装pip包的主要内容,如果未能解决你的问题,请参考以下文章