Search code examples
pythonlinux-mint

Installing packages from local source


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?