To download a Python package with pip without installing it, you can use the --download (or -d) option. This will download the package and its dependencies to a specified directory, but will not install them.
Command:
pip download <package_name> -d /path/to/directory
Example:
If you want to download the requests package to a directory called downloads in your current folder, you would use:
pip download requests -d ./downloads
Notes:
- Replace
<package_name> with the name of the package you want to download.
- Replace
/path/to/directory with the actual path where you want the package to be downloaded.
- This command will download the package and all its dependencies to the specified directory.
Would you like help with anything else related to Python packages?