📌  相关文章
📜  如何在 sercer 中在没有 Internet 的情况下安装 python 模块 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.641000             🧑  作者: Mango

代码示例2
If you want to install a bunch of dependencies from, say a requirements.txt, you would do:

mkdir dependencies
pip download -r requirements.txt -d "./dependencies"
tar cvfz dependencies.tar.gz dependencies
And, once you transfer the dependencies.tar.gz to the machine which does not have internet you would do:

tar zxvf dependencies.tar.gz
cd dependencies
pip install * -f ./ --no-index