Download python package with dependencies without installing

后端 未结 1 1511
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 04:01

I need to download a python package with all its dependencies without installing, sneaker-net it to a computer without connection to the internet, and install it there. For

相关标签:
1条回答
  • 2020-12-14 04:42

    You can use pip, with the --download option, which will download the main package and its dependancies, without installing them.

    pip install --download="/path/to/downloaded/files" sneaker-net
    

    And use these files one the local machine with:

    pip install --no-index --find-links=<DIR on local machine> sneaker-net
    

    See pip documentation --download for fast & local installs. You can use pip on Windows with cygwin for example.

    0 讨论(0)
提交回复
热议问题