Thursday, April 14, 2022

[SOLVED] Installing packages from local source

Issue

I prefer to keep local python packages on my windows box for when im setting up a virtualenv. So I have several wheel files for various packages that I use often when creating virtualenv's, which are gotten from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

My question is on how to mimic this process in Linux Mint. Is it possible to download the packages I need (using pip? or something else?) and keep them on my machine for later use when creating a virtualenv?

And a related question, is there a way to check the dependencies that a certain package needs via the command line?


Solution

You could use

pip install modulename --download ~/folder_to_store_downloads

More here: How to use Python's pip to download and keep the zipped files for a package?



Answered By - Tamerz
Answer Checked By - Mildred Charles (WPSolving Admin)