I have restrictions at work and if I download packages using the pip command via the command line, then the security service blocks everything from the Internet. Therefore, I need to download packages directly, and then install it offline with a computer. But I can not find where to download them.

Tell me where can I directly download packages? I need tqdm, pandas, numpy, sklearn.metrics, statsmodels, scipy, matplotlib

  • In general, when your set of packages, try the Anaconda distribution. After all, some of the packages you listed have dependencies that pip itself resolves. - mkkik
  • @mkkik is a bad option, Anaconda is a good option for Dev machines, when in combat this is an overly bloated lib set, it is better and easier to download the necessary lib and install it, reply Dmitry Erohin - users

2 answers 2

  1. Download the packages you need from here https://pypi.python.org/
  2. To install you need to write pip install полный_путь_до_имени_файла

    You can use pip to download the necessary packages:

     $ pip download -r requirements.txt --dest dist --only-binary :all: 

    If the machine with the Internet is different from the system where you want to install, then explicitly specify the platform using --implementation , --platform , --python-version and other options. See pip help download .

    Then transfer the dist folder to the desired machine and install it without reference to PyPI:

     $ pip install -r requirements.txt --no-index -f dist 

    In the simplest case, requirements.txt is just a file with the name of the package on each line:

     tqdm pandas numpy scikit-learn statsmodels scipy matplotlib 

    If the platforms match, then you can assemble the binary wheels yourself if they are not already on PyPI:

     $ pip wheel --wheel-dir=dist -r requirements.txt