1.在有网络连接的环境中下载第三方库的wheel文件(.whl)。
2.将下载的wheel文件拷贝到离线的环境上。使用pip安装wheel文件。
命令如下:
在有线环境终端:
pip download pandas -d /path_to_save_wheels
这将下载所有pandas依赖的wheel文件到指定目录。
在离线环境终端执行:
pip install --no-index --find-links=/path_to_save_wheels 第三方库
1.在有网络连接的环境中下载第三方库的wheel文件(.whl)。
2.将下载的wheel文件拷贝到离线的环境上。使用pip安装wheel文件。
命令如下:
在有线环境终端:
pip download pandas -d /path_to_save_wheels
这将下载所有pandas依赖的wheel文件到指定目录。
在离线环境终端执行:
pip install --no-index --find-links=/path_to_save_wheels 第三方库