在公网准备一台和内网(离线)一样(操作系统、Python版本)的机器,推荐用虚拟机。 1.在公网下载 pip download -d /path/dir pkgname 2.上传到内网后安装 pip install pkgname --no-index --find-links /path/dir