How to use Python's pip to download and keep the zipped files for a package? Ask Question

How to use Python's pip to download and keep the zipped files for a package? Ask Question

コマンドを使用してpipパッケージ(およびその依存関係)をダウンロードしたいが、保つダウンロードされるすべての zip ファイル (たとえば、django-socialregistration.tar.gz) - それを実行する方法はありますか?

さまざまなコマンドラインオプションを試してみましたが、いつも解凍して消去zipファイル - またはzipファイルを取得しますがのみ依存関係ではなく、元のパッケージ用です。

ベストアンサー1

pip install --downloadは非推奨です。バージョン8.0.0以降では、pip download指示:

 pip download <package-name>

おすすめ記事