Offline install python packages sometimes is very useful, especially when you go down for on-site work and there are no internet environments.
When I install requests package offline, I found that it suck, because it’s need to download some other requirements online.
So, I must download the require package from network everytime when I face the error. I had do the error -> download -> install -> error serval times and lose heart.
Then I try to search from google and found a very useful pip command.
1 | pip download requests |
This command will download all the requirements packages’s wheel file to local folder, and then you can install the packages offline very smoothly.
1 | bash-> pip download requests |
Great, that’s so nice tool, I think I need to read the manual before I use a tool……